Borderou de evaluare (job #2408937)

Utilizator PatrickCplusplusPatrick Kristian Ondreovici PatrickCplusplus Data 18 aprilie 2019 15:06:37
Problema Secvente 2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: <command-line>:0:11: error: expected identifier before numeric constant main.cpp:6:8: note: in expansion of macro 'INFOARENA' struct INFOARENA ^~~~~~~~~ <command-line>:0:11: error: expected unqualified-id before numeric constant main.cpp:6:8: note: in expansion of macro 'INFOARENA' struct INFOARENA ^~~~~~~~~ main.cpp:9:2: error: 'v' does not name a type }v[200001]; ^ main.cpp:10:20: error: expected ')' before 'a' bool cmp(INFOARENA a, INFOARENA b) ^ main.cpp:10:33: error: expected ')' before 'b' bool cmp(INFOARENA a, INFOARENA b) ^ main.cpp:10:34: error: expression list treated as compound expression in initializer [-fpermissive] bool cmp(INFOARENA a, INFOARENA b) ^ main.cpp:10:34: warning: left operand of comma operator has no effect [-Wunused-value] main.cpp:11:1: error: expected ',' or ';' before '{' token { ^ main.cpp: In function 'int main()': main.cpp:19:16: error: 'v' was not declared in this scope fin >> v[i].val; ^ main.cpp:22:10: error: 'v' was not declared in this scope sort(v + 1, v + n + 1, cmp); ^ Non zero exit status: 1

Ceva nu functioneaza?