Borderou de evaluare (job #2240053)

Utilizator Vlad_BujoreanuVlad Bujoreanu Vlad_Bujoreanu Data 12 septembrie 2018 11:15:00
Problema Fractii Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:21:16: warning: left operand of comma operator has no effect [-Wunused-value] for (p, p<=n, p++) { ^ user.cpp:21:14: warning: right operand of comma operator has no effect [-Wunused-value] for (p, p<=n, p++) { ~^~~ user.cpp:21:22: error: expected ‘;’ before ‘)’ token for (p, p<=n, p++) { ^ user.cpp:38:1: error: expected primary-expression at end of input } ^ user.cpp:38:1: error: expected ‘;’ at end of input user.cpp:38:1: error: expected primary-expression at end of input user.cpp:38:1: error: expected ‘)’ at end of input user.cpp:38:1: error: expected statement at end of input user.cpp:21:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] for (p, p<=n, p++) { ^~~ cc1plus: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’ user.cpp:9:9: warning: unused variable ‘c’ [-Wunused-variable] int c; ^ user.cpp:38:1: error: expected ‘}’ at end of input } ^

Ceva nu functioneaza?