Borderou de evaluare (job #1540764)

Utilizator SmitOanea Smit Andrei Smit Data 3 decembrie 2015 10:51:38
Problema Palindroame Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int Solutie()’: user.cpp:10:9: error: expected unqualified-id before ‘,’ token int ,ok=0; ^ user.cpp:11:9: error: ‘i’ was not declared in this scope for(i=0;i<27;++i) nrap[i]=0; ^ user.cpp:12:9: error: ‘i’ was not declared in this scope for(i=0;a[i]!=0;++i) nrap[a[i]-'a']++; ^ user.cpp:13:9: error: ‘i’ was not declared in this scope for(i=0;i<27 && ok<2;++i) ^ user.cpp:17:5: error: ‘st’ was not declared in this scope st=0; dr=strlen(a)-1; ^ user.cpp:17:11: error: ‘dr’ was not declared in this scope st=0; dr=strlen(a)-1; ^ user.cpp:17:22: error: ‘strlen’ was not declared in this scope st=0; dr=strlen(a)-1; ^ user.cpp:24:13: error: ‘k’ was not declared in this scope k=1; ^ user.cpp:25:17: error: ‘i’ was not declared in this scope for(i=dr-1;i>=st && k;--i) if(a[i]==a[st]) ^ user.cpp:27:13: error: ‘i’ was not declared in this scope i++; ^ user.cpp:28:17: error: expected primary-expression before ‘)’ token for() ^ user.cpp:28:17: error: expected ‘;’ before ‘)’ token user.cpp:29:9: error: expected primary-expression before ‘}’ token } ^ user.cpp:29:9: error: expected ‘;’ before ‘}’ token user.cpp:29:9: error: expected primary-expression before ‘}’ token user.cpp:29:9: error: expected ‘)’ before ‘}’ token user.cpp:29:9: error: expected primary-expression before ‘}’ token user.cpp:29:9: error: expected ‘;’ before ‘}’ token user.cpp: In function ‘void Citire()’: user.cpp:37:17: error: variable ‘std::ifstream fin’ has initializer but incomplete type ifstream fin("palind.in"); ^ user.cpp:38:18: error: variable ‘std::ofstream fout’ has initializer but incomplete type ofstream fout("palind.out"); ^

Ceva nu functioneaza?