Borderou de evaluare (job #1956499)

Utilizator badea_adi1999Badea Adrian Catalin badea_adi1999 Data 6 aprilie 2017 19:54:48
Problema Puncte Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:47:1: error: expected ‘,’ or ‘;’ before ‘struct’ struct punct{int x;int y;} v[nmax],q[nmax*2]; ^ user.cpp:47:28: error: ‘v’ does not name a type struct punct{int x;int y;} v[nmax],q[nmax*2]; ^ user.cpp:48:8: error: ‘punct’ was not declared in this scope stack <punct> s; ^ user.cpp:48:13: error: template argument 1 is invalid stack <punct> s; ^ user.cpp:48:13: error: template argument 2 is invalid user.cpp:48:16: error: invalid type in declaration before ‘;’ token stack <punct> s; ^ user.cpp:52:21: error: ‘punct’ does not name a type int sortpunct(const punct &a,const punct &b) ^ user.cpp:52:28: error: ISO C++ forbids declaration of ‘a’ with no type [-fpermissive] int sortpunct(const punct &a,const punct &b) ^ user.cpp:52:36: error: ‘punct’ does not name a type int sortpunct(const punct &a,const punct &b) ^ user.cpp:52:43: error: ISO C++ forbids declaration of ‘b’ with no type [-fpermissive] int sortpunct(const punct &a,const punct &b) ^ user.cpp: In function ‘int sortpunct(const int&, const int&)’: user.cpp:54:11: error: request for member ‘x’ in ‘a’, which is of non-class type ‘const int’ if (a.x==b.x) ^ user.cpp:54:16: error: request for member ‘x’ in ‘b’, which is of non-class type ‘const int’ if (a.x==b.x) ^ user.cpp:55:18: error: request for member ‘y’ in ‘a’, which is of non-class type ‘const int’ return a.y<b.y; ^ user.cpp:55:22: error: request for member ‘y’ in ‘b’, which is of non-class type ‘const int’ return a.y<b.y; ^ user.cpp:56:14: error: request for member ‘x’ in ‘a’, which is of non-class type ‘const int’ return a.x<b.x; ^ user.cpp:56:18: error: request for member ‘x’ in ‘b’, which is of non-class type ‘const int’ return a.x<b.x; ^ user.cpp: At global scope: user.cpp:59:22: error: ‘punct’ does not name a type long long dist(const punct &a,const punct &b)

Ceva nu functioneaza?