Borderou de evaluare (job #2511143)

Utilizator DordeDorde Matei Dorde Data 18 decembrie 2019 13:13:07
Problema Caps Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:1: error: expected ',' or ';' before 'ofstream' ofstream out ("caps.out"); ^~~~~~~~ main.cpp:10:1: error: expected initializer before 'char' char caps(char ch) ^~~~ main.cpp: In function 'int main()': main.cpp:30:9: error: 'fv' was not declared in this scope fv[s[i-1]]++,mat[nr(s[i-1])][i]++; ^~ main.cpp:29:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(i=1;i<=k;i++) ^~~ main.cpp:31:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' for(i=1;i<=52;i++) ^~~ main.cpp:58:19: error: 'caps' was not declared in this scope ch=caps(s[cn-1]); ^ main.cpp:61:3: error: 'out' was not declared in this scope out<<ch; ^~~ main.cpp:62:16: error: 'fv' was not declared in this scope cnt=n/(2*k)*(fv[ch]+fv[caps(ch)]); ^~ main.cpp:62:33: error: 'caps' was not declared in this scope cnt=n/(2*k)*(fv[ch]+fv[caps(ch)]); ^ Non zero exit status: 1

Ceva nu functioneaza?