Borderou de evaluare (job #699110)

Utilizator avatar pudakn Pudak Nurberdiyev pudakn IP ascuns
Problemă Latin1 (baraj gimnaziu) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 25 feb. 2023 11:32:34 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:29:24: warning: for increment expression has no effect [-Wunused-value] 29 | for(int i=1; i<=n; i ){ | ^ main.cpp:30:28: warning: for increment expression has no effect [-Wunused-value] 30 | for(int j=1; j<=n; j ){ | ^ main.cpp:33:42: error: expected ';' before 'prefix' 33 | prefix[i][j] = prefix[i][j-1] prefix[i-1][j] - prefix[i-1][j-1] number; | ^ ~~~~~~ | ; main.cpp:37:33: warning: for increment expression has no effect [-Wunused-value] 37 | for(int length=2; length<n; length ){ // take all possible lengths | ^~~~~~ main.cpp:38:23: error: expected ';' before 'length' 38 | for(int i=1; i length-1<=n; i ){ // generate the squares we can possibly take | ^~~~~~~ | ; main.cpp:38:32: warning: for increment expression has no effect [-Wunused-value] 38 | for(int i=1; i length-1<=n; i ){ // generate the squares we can possibly take | ~~~~~~~~^~~ main.cpp:38:35: error: expected ')' before ';' token 38 | for(int i=1; i length-1<=n; i ){ // generate the squares we can possibly take | ~ ^ | ) main.cpp:38:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 38 | for(int i=1; i length-1<=n; i ){ // generate the squares we can possibly take | ^~~ main.cpp:38:37: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 38 | for(int i=1; i length-1<=n; i ){ // generate the squares we can possibly take | ^ main.cpp:38:37: error: 'i' was not declared in this scope main.cpp:36:9: warning: unused variable 'cnt' [-Wunused-variable] 36 | int cnt=0; | ^~~