Borderou de evaluare (job #858581)

Utilizator avatar ChircaTeo bob marley ChircaTeo IP ascuns
Problemă Hiccup (clasa a 7-a) Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 26 mar. 2026 12:09:17 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:9:13: error: expected ';' before 'int' 9 | fin >> K | ^ | ; 10 | 11 | int last[10]; | ~~~ main.cpp:12:34: error: 'last' was not declared in this scope 12 | for (int i = 0; i < 10; i++) last[i] = -1; | ^~~~ main.cpp:27:13: error: 'last' was not declared in this scope; did you mean 'st'? 27 | if (last[c] < st) distincte++; | ^~~~ | st main.cpp:29:9: error: 'last' was not declared in this scope; did you mean 'st'? 29 | last[c] = pos; | ^~~~ | st main.cpp:54:37: error: expected '}' at end of input 54 | fout << suma << "\n" << max_len; | ^ main.cpp:4:12: note: to match this '{' 4 | int main() { | ^