Borderou de evaluare (job #3367470)

Utilizator RosaSofianRosa Sofian RosaSofian Data 8 octombrie 2026 00:59:46
Problema Dreptunghiuri5 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:11:5: error: redefinition of 'int lin [1005][1005]' 11 | int lin[dim][dim], col[dim][dim]; | ^~~ main.cpp:10:18: note: 'int lin [1005][1005]' previously declared here 10 | int a[dim][dim], lin[dim][dim], sp[dim][dim]; | ^~~ main.cpp: In function 'int main()': main.cpp:30:13: error: 'lung' was not declared in this scope; did you mean 'long'? 30 | lung[i][j+ 1]= cnt; | ^~~~ | long main.cpp:36:21: error: 'lung' was not declared in this scope; did you mean 'long'? 36 | cout << lung[i][j]<<" "; | ^~~~ | long main.cpp:43:9: error: expected primary-expression before 'while' 43 | while() | ^~~~~ main.cpp:50:17: warning: unused variable 'l1' [-Wunused-variable] 50 | int l1= i, c1= j, l2, c2; | ^~ main.cpp:50:31: warning: unused variable 'l2' [-Wunused-variable] 50 | int l1= i, c1= j, l2, c2; | ^~ Non zero exit status: 1

Ceva nu functioneaza?