Borderou de evaluare (job #2845383)

Utilizator BlaugranasEnal Gemaledin Blaugranas Data 7 februarie 2022 19:19:18
Problema Metrou Status done
Runda Arhiva Monthly Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:6:21: error: conflicting declaration 'int w [2001]' 6 | int d[2001],u[2001],w[2001],o[2001][2],i,j,t,n,k,p; | ^ main.cpp:5:25: note: previous declaration as 'long long int w' 5 | long long M=1<<30,a,b,e,w,r; | ^ main.cpp: In function 'int A(int, int)': main.cpp:9:26: error: invalid types 'long long int[int]' for array subscript 9 | return t*u[s]+(1-t)*w[s]; | ^ main.cpp: In function 'int main()': main.cpp:18:13: error: invalid types 'long long int[int]' for array subscript 18 | f>>w[i]; | ^ main.cpp:21:28: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 21 | for(a=b=e=0LL;r=M;k=i;j=i-1;j>=0;--j) { | ~^~ main.cpp:21:34: error: expected ')' before ';' token 21 | for(a=b=e=0LL;r=M;k=i;j=i-1;j>=0;--j) { | ~ ^ | ) main.cpp:21:13: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 21 | for(a=b=e=0LL;r=M;k=i;j=i-1;j>=0;--j) { | ^~~ main.cpp:21:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 21 | for(a=b=e=0LL;r=M;k=i;j=i-1;j>=0;--j) { | ^ main.cpp:20:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 20 | for(t=0;t<=1;o[i][t]=r,++t) | ^~~ main.cpp:21:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 21 | for(a=b=e=0LL;r=M;k=i;j=i-1;j>=0;--j) { | ^ main.cpp:21:42: warning: statement has no effect [-Wunused-value] 21 | for(a=b=e=0LL;r=M;k=i;j=i-1;j>=0;--j) { | ~^~~ main.cpp:21:49: error: expected ';' before ')' token 21 | for(a=b=e=0LL;r=M;k=i;j=i-1;j>=0;--j) { | ^ | ; Non zero exit status: 1

Ceva nu functioneaza?