Borderou de evaluare (job #610842)

Utilizator avatar IonPetrov2 Ion petrov IonPetrov2 IP ascuns
Problemă Numere7 (clasa a 9-a) Compilator cpp-32
Rundă lasm_19_10_2021_clasa12 Status evaluat
Dată 19 oct. 2021 12:12:22 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:23: error: expected ']' before ';' token 5 | int a[501][501],fr[501;501],n,u=0; | ^ | ] main.cpp:5:24: error: expected unqualified-id before numeric constant 5 | int a[501][501],fr[501;501],n,u=0; | ^~~ main.cpp: In function 'void citire(int)': main.cpp:13:9: error: 'fr' was not declared in this scope 13 | fr[a[i][j]]++; | ^~ main.cpp: In function 'void rez(int)': main.cpp:21:13: error: 'fr' was not declared in this scope 21 | if (fr[i]==0) | ^~ main.cpp:25:6: error: 'p' was not declared in this scope 25 | p=u=i; | ^ main.cpp:25:8: error: 'u' was not declared in this scope 25 | p=u=i; | ^ main.cpp:29:9: error: 'u' was not declared in this scope 29 | u=i; | ^ main.cpp:31:9: error: 'p' was not declared in this scope 31 | if (p!=0&&u!=0) | ^ main.cpp:31:15: error: 'u' was not declared in this scope 31 | if (p!=0&&u!=0) | ^ main.cpp: In function 'int main()': main.cpp:36:6: error: 'n' was not declared in this scope 36 | fin>>n; | ^