Borderou de evaluare (job #775680)

Utilizator avatar popescu_george Popescu George popescu_george IP ascuns
Problemă Rucsac 1 Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 21 apr. 2024 14:24:59 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:25:26: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 25 | for(i=A(),k=A();l=j;l>=i;a[l]=max(a[l],k+a[l-i]),--l); | ~^~ main.cpp:25:30: warning: for increment expression has no effect [-Wunused-value] 25 | for(i=A(),k=A();l=j;l>=i;a[l]=max(a[l],k+a[l-i]),--l); | ~^~~ main.cpp:25:33: error: expected ')' before ';' token 25 | for(i=A(),k=A();l=j;l>=i;a[l]=max(a[l],k+a[l-i]),--l); | ~ ^ | ) main.cpp:25:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 25 | for(i=A(),k=A();l=j;l>=i;a[l]=max(a[l],k+a[l-i]),--l); | ^~~ main.cpp:25:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 25 | for(i=A(),k=A();l=j;l>=i;a[l]=max(a[l],k+a[l-i]),--l); | ^ main.cpp:24:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 24 | for(n=A(),j=A();n--;) | ^~~ main.cpp:25:34: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 25 | for(i=A(),k=A();l=j;l>=i;a[l]=max(a[l],k+a[l-i]),--l); | ^ main.cpp:25:61: error: expected ';' before ')' token 25 | for(i=A(),k=A();l=j;l>=i;a[l]=max(a[l],k+a[l-i]),--l); | ^ | ;