Borderou de evaluare (job #2864297)

Utilizator razvanalexrotaruRazvan Alexandru Rotaru razvanalexrotaru Data 7 martie 2022 19:05:40
Problema Polihroniade Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:7:1: error: expected ',' or ';' before 'int' 7 | int p,t,i,j,n,m[1008][1008],vec2[1008],vec[1008],col1[1008],ok,val1,val2,cnt[4],l,lin1[1008]; | ^~~ main.cpp: In function 'bool comp(int*, int*)': main.cpp:11:21: error: 'n' was not declared in this scope 11 | for(int i=1; i<=n; i++) | ^ main.cpp: In function 'bool comp2(int*, int)': main.cpp:20:21: error: 'n' was not declared in this scope 20 | for(int i=1; i<=n; i++) | ^ main.cpp:22:18: error: 'm' was not declared in this scope 22 | if(a[i]!=m[i][k]) | ^ main.cpp: In function 'int main()': main.cpp:31:10: error: 'p' was not declared in this scope 31 | cin>>p>>t; | ^ main.cpp:31:13: error: 't' was not declared in this scope; did you mean 'tm'? 31 | cin>>p>>t; | ^ | tm main.cpp:32:9: error: 'l' was not declared in this scope 32 | for(l=1; l<=t; l++) | ^ main.cpp:34:14: error: 'n' was not declared in this scope; did you mean 'yn'? 34 | cin>>n; | ^ | yn main.cpp:35:13: error: 'j' was not declared in this scope; did you mean 'jn'? 35 | for(j=1; j<=n; j++) | ^ | jn main.cpp:37:13: error: 'lin1' was not declared in this scope 37 | lin1[j]=col1[j]=0; | ^~~~ main.cpp:37:21: error: 'col1' was not declared in this scope 37 | lin1[j]=col1[j]=0; | ^~~~ main.cpp:39:13: error: 'i' was not declared in this scope 39 | for(i=1; i<=n; i++) | ^ main.cpp:40:17: error: 'j' was not declared in this scope; did you mean 'jn'? 40 | for(j=1; j<=n; j++) | ^ | jn main.cpp:43:17: error: 'm' was not declared in this scope; did you mean 'tm'? 43 | m[i][j]=ch-'0'; | ^ | tm Non zero exit status: 1

Ceva nu functioneaza?