Borderou de evaluare (job #778558)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Date (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 26 mai 2024 13:22:16 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:15:17: error: return-statement with no value, in function returning 'int' [-fpermissive]
15 | return;
| ^~~~~~
main.cpp:27:21: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
27 | if (l1 == 2 && (a1 % 4 == 0 && a1 % 100 != 0) || a1 % 400 == 0)
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~