Borderou de evaluare (job #2622163)
Utilizator | Data | 31 mai 2020 16:43:36 | |
---|---|---|---|
Problema | Queue | Status | done |
Runda | Teme Pregatire ACM Unibuc 2014, Anul I | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:17:13: error: expected unqualified-id before numeric constant
for(int 1 = 0; i <= n; i++)
^
main.cpp:17:13: error: expected ';' before numeric constant
main.cpp:17:17: error: lvalue required as left operand of assignment
for(int 1 = 0; i <= n; i++)
^
main.cpp:17:20: error: 'i' was not declared in this scope
for(int 1 = 0; i <= n; i++)
^
main.cpp:17:26: error: expected ')' before ';' token
for(int 1 = 0; i <= n; i++)
^
main.cpp:17:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int 1 = 0; i <= n; i++)
^~~
main.cpp:17:28: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for(int 1 = 0; i <= n; i++)
^
main.cpp:17:28: error: 'i' was not declared in this scope
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !