Borderou de evaluare (job #700263)

Utilizator avatar Alex__balan Alexandru balan Alex__balan IP ascuns
Problemă Date (clasa a 6-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 3 mar. 2023 11:00:14 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:6:64: error: too many initializers for 'int [11]' 6 | int luna[11] = { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30 }; | ^ main.cpp: In function 'int main()': main.cpp:23:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 23 | if( ( ( a2 % 400 == 0 ) || ( a2 % 4 == 0 && a2 % 100 != 0 ) ) && l2 > 2 ) | ^~ main.cpp:25:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 25 | fout<<ans; | ^~~~