Borderou de evaluare (job #1509804)

Utilizator Andrei66Andrei Rusu Andrei66 Data 24 octombrie 2015 12:26:02
Problema Infasuratoare convexa Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:18:1: error: expected ‘,’ or ‘;’ before ‘struct’ struct point ^ user.cpp:22:1: error: ‘point’ does not name a type point v[VM], st[VM], st2[VM]; ^ user.cpp:34:10: error: ‘point’ was not declared in this scope bool cmp(point a, point b){ ^ user.cpp:34:19: error: ‘point’ was not declared in this scope bool cmp(point a, point b){ ^ user.cpp:34:26: error: expression list treated as compound expression in initializer [-fpermissive] bool cmp(point a, point b){ ^ user.cpp:34:27: error: expected ‘,’ or ‘;’ before ‘{’ token bool cmp(point a, point b){ ^ user.cpp: In function ‘int main()’: user.cpp:42:28: error: ‘v’ was not declared in this scope for(int i=0; i<n; ++i) f>>v[i].x>>v[i].y; ^ user.cpp:44:7: error: ‘v’ was not declared in this scope sort(v, v + n, cmp); ^ user.cpp:49:2: error: ‘st’ was not declared in this scope st[++vf] = v[0]; ^ user.cpp:57:2: error: ‘st2’ was not declared in this scope st2[++vf2] = v[n-1]; ^

Ceva nu functioneaza?