Borderou de evaluare (job #721161)

Utilizator avatar haiducii Haiducii haiducii IP ascuns
Problemă Cartonaș (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 23 mai 2023 19:29:45 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:14:20: error: expected ';' before 's' 14 | fin >> v[i] | ^ | ; 15 | s[0] = s[0] + v[i]; | ~ main.cpp:39:13: error: expected unqualified-id before '=' token 39 | int = h = 0, cs = s[i]; | ^ main.cpp:40:16: error: 'cs' was not declared in this scope; did you mean 's'? 40 | while( cs != 0 ) | ^~ | s main.cpp:43:17: error: 'h' was not declared in this scope 43 | h++; | ^ main.cpp:46:16: error: 'h' was not declared in this scope 46 | s[i] = h; | ^ main.cpp:47:9: error: 'ind' was not declared in this scope; did you mean 'int'? 47 | ind[i] = i; | ^~~ | int main.cpp:54:51: error: 'ind' was not declared in this scope; did you mean 'int'? 54 | if ( s[i] < s[j] || ( s[i] == s[j] && ind[i] > ind[j] ) ) | ^~~ | int main.cpp:62:17: error: 'ind' was not declared in this scope; did you mean 'int'? 62 | fout << ind[i] << " "; | ^~~ | int main.cpp:9:49: warning: unused variable 'nr1' [-Wunused-variable] 9 | int v[101], i, n, x, s[100], j, rx, ok = 0, nr1[100]; | ^~~