Borderou de evaluare (job #616942)

Utilizator avatar rafa06 turiceanu rafaela rafa06 IP ascuns
Problemă Date (clasa a 6-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 19 nov. 2021 21:59:38 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:7:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 7 | if(a1%400==0||a1%4==0&&a1%100!=0) {a3=a1*366; | ~~~~~~~^~~~~~~~~~~ main.cpp:10:63: warning: right operand of comma operator has no effect [-Wunused-value] 10 | for (x=3,x<=l1,x=x+ 1) if (x%2==0) {l3=l3+ 30}; | ~^~~~ main.cpp:10:74: error: expected ';' before ')' token 10 | for (x=3,x<=l1,x=x+ 1) if (x%2==0) {l3=l3+ 30}; | ^ | ; main.cpp:11:76: error: 'elsel3' was not declared in this scope 11 | elsel3=l3+ 31;}} | ^~~~~~ main.cpp:11:90: error: expected primary-expression before '}' token 11 | elsel3=l3+ 31;}} | ^ main.cpp:11:90: error: expected ')' before '}' token 11 | elsel3=l3+ 31;}} | ^ | ) main.cpp:10:57: note: to match this '(' 10 | for (x=3,x<=l1,x=x+ 1) if (x%2==0) {l3=l3+ 30}; | ^ main.cpp:11:90: error: expected primary-expression before '}' token 11 | elsel3=l3+ 31;}} | ^ main.cpp:15:52: warning: right operand of comma operator has no effect [-Wunused-value] 15 | for (x=3, x<=l1, x++) if (x%2==0) l3=l3+ 30; | ~^~~~ main.cpp:15:61: error: expected ';' before ')' token 15 | for (x=3, x<=l1, x++) if (x%2==0) l3=l3+ 30; | ^ | ; main.cpp:16:77: error: expected primary-expression before 'else' 16 | else l3=l3+ 31;} | ^~~~ main.cpp:15:87: error: expected ';' before 'else' 15 | for (x=3, x<=l1, x++) if (x%2==0) l3=l3+ 30; | ^ | ; 16 | else l3=l3+ 31;} | ~~~~ main.cpp:16:77: error: expected primary-expression before 'else' 16 | else l3=l3+ 31;} | ^~~~ main.cpp:15:87: error: expected ')' before 'else' 15 | for (x=3, x<=l1, x++) if (x%2==0) l3=l3+ 30; | ~ ^ | )