fork download
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int main() {
  6. string s;
  7. while(cin >> s) {
  8. vector<string> kek = cnt(s), kek2;
  9. for(int i = 0; i < kek.size(); ++i) {
  10. if(kek[i].length())
  11. kek2.push_back(kek[i]);
  12. else {
  13. for(int j = 0; j < 8 - kek.size(); ++j)
  14. kek2.push_back("0000");
  15. }
  16. }
  17. cout << endl;
  18. }
  19. return 0;
  20. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:8:3: error: ‘vector’ was not declared in this scope
   vector<string> kek = cnt(s), kek2;
   ^~~~~~
prog.cpp:8:16: error: expected primary-expression before ‘>’ token
   vector<string> kek = cnt(s), kek2;
                ^
prog.cpp:8:18: error: ‘kek’ was not declared in this scope
   vector<string> kek = cnt(s), kek2;
                  ^~~
prog.cpp:8:29: error: ‘cnt’ was not declared in this scope
   vector<string> kek = cnt(s), kek2;
                             ^
prog.cpp:8:32: error: ‘kek2’ was not declared in this scope
   vector<string> kek = cnt(s), kek2;
                                ^~~~
stdout
Standard output is empty