Borderou de evaluare (job #715876)

Utilizator avatar Tudor_11 Tudor Ioan Calin Tudor_11 IP ascuns
Problemă Puteri2 (clasa a 8-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 20 apr. 2023 16:21:01 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:6:7: error: 'n' was not declared in this scope 6 | int a[n]; | ^ main.cpp:7:7: error: 'n' was not declared in this scope 7 | int b[n]; | ^ main.cpp: In function 'int main()': main.cpp:15:12: error: 'a' was not declared in this scope 15 | fin>>a[i]; | ^ main.cpp:19:12: error: 'b' was not declared in this scope 19 | fin>>b[i]; | ^ main.cpp:23:10: error: 'b' was not declared in this scope 23 | if(b[i]==1) | ^ main.cpp:25:12: error: 'a' was not declared in this scope 25 | s+=a[i]; | ^ main.cpp:27:10: error: 'b' was not declared in this scope 27 | if(b[i]==0 || a[i]==1) | ^ main.cpp:27:21: error: 'a' was not declared in this scope 27 | if(b[i]==0 || a[i]==1) | ^