Borderou de evaluare (job #785688)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Fotbal 2 (clasa a 6-a) | Compilator | cpp-32 |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 6 sept. 2024 20:30:23 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:73:34: error: expected ';' before ')' token
73 | for(i = (chestie) / d) * d ; i <= n; i += d) {
| ^
| ;
main.cpp:85:15: warning: init-statement in selection statements only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions]
85 | if(cnt2(i + (chestie) == ciur[i])
| ^~~~
main.cpp:85:19: error: lvalue required as increment operand
85 | if(cnt2(i + (chestie) == ciur[i])
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:90:20: error: expected ')' before ';' token
90 | fout << cnt;
| ^
| )
main.cpp:85:14: note: to match this '('
85 | if(cnt2(i + (chestie) == ciur[i])
| ^