Borderou de evaluare (job #2646306)
Utilizator | Data | 31 august 2020 18:12:55 | |
---|---|---|---|
Problema | Problema rucsacului | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:15:24: error: expected ')' before ';' token
for(int i=0;i<N;i++;ok=1-ok)
^
main.cpp:15:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=0;i<N;i++;ok=1-ok)
^~~
main.cpp:15:25: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for(int i=0;i<N;i++;ok=1-ok)
^~
main.cpp:15:32: error: expected ';' before ')' token
for(int i=0;i<N;i++;ok=1-ok)
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !