Submission #16830

#TimeUsernameProblemLanguageResultExecution timeMemory
16830nona1314뚊 (kriii3_EE)C++98
Compilation error
0 ms0 KiB
#include <iostream> #include <string> #include <vector> using namespace std; int main(){ int n,m; cin>>n>>m; vector<string> ehfeha; for(int i=0;i<n;i++){ string s,ss; cin>>s; for(char &x : s){ ss.push_back(x); ss.push_back(x); } ehfeha.push_back(ss); } for(int i=0;i<n;i++){ string s; cin>>s; if(ehfeha[i] != s){ printf("Not "); break; } } puts("Eyfa"); return 0; }

Compilation message (stderr)

ee.cpp: In function ‘int main()’:
ee.cpp:14:17: error: range-based ‘for’ loops are not allowed in C++98 mode
   for(char &x : s){
                 ^
ee.cpp:24:17: error: ‘printf’ was not declared in this scope
    printf("Not ");
                 ^
ee.cpp:28:13: error: ‘puts’ was not declared in this scope
  puts("Eyfa");
             ^