fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. string s;
  6. cin>>s;
  7. int i;
  8. vector<string> str;
  9. string item;
  10. stringstream ss(s);
  11. //str=strtok(s,":");
  12. while(getline(ss,item,':''))
  13. {
  14. cout<<item;
  15. }
  16. // your code goes here
  17. return 0;
  18. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
0:df:0
compilation info
prog.cpp:12:27: warning: missing terminating ' character
  while(getline(ss,item,':''))
                           ^
prog.cpp:12:27: error: missing terminating ' character
  while(getline(ss,item,':''))
                           ^~~
prog.cpp: In function ‘int main()’:
prog.cpp:13:2: error: expected ‘)’ before ‘{’ token
  {
  ^
prog.cpp:17:10: error: expected ‘)’ before ‘;’ token
  return 0;
          ^
stdout
Standard output is empty