Borderou de evaluare (job #2459204)

Utilizator Diana-ElenaStancu Diana-Elena Diana-Elena Data 22 septembrie 2019 11:38:06
Problema Aiacucmmdc Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:9:10: error: expected ';' before ')' token for(n--) ^ main.cpp:25:1: error: expected primary-expression at end of input } ^ main.cpp:25:1: error: expected ';' at end of input main.cpp:25:1: error: expected primary-expression at end of input main.cpp:25:1: error: expected ')' at end of input main.cpp:25:1: error: expected statement at end of input main.cpp:9:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(n--) ^~~ cc1plus: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' main.cpp:7:23: warning: unused variable 'c' [-Wunused-variable] long long int n, p, c = 0, x, lg = 0; ^ main.cpp:7:30: warning: unused variable 'x' [-Wunused-variable] long long int n, p, c = 0, x, lg = 0; ^ main.cpp:7:33: warning: unused variable 'lg' [-Wunused-variable] long long int n, p, c = 0, x, lg = 0; ^~ main.cpp:25:1: error: expected '}' at end of input } ^ Non zero exit status: 1

Ceva nu functioneaza?