Borderou de evaluare (job #2456004)

Utilizator AlexPascu007Pascu Ionut Alexandru AlexPascu007 Data 13 septembrie 2019 12:20:27
Problema Mosia Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:21:73: error: two or more data types in declaration of 'type name' int cmp(const pair< pair<int, int>, int> &a, const pair< pair<int, int> int> &b) { ^~~ main.cpp:21:76: error: wrong number of template arguments (1, should be 2) int cmp(const pair< pair<int, int>, int> &a, const pair< pair<int, int> int> &b) { ^ In file included from /usr/include/c++/6/bits/stl_algobase.h:64:0, from /usr/include/c++/6/bits/char_traits.h:39, from /usr/include/c++/6/ios:40, from /usr/include/c++/6/istream:38, from /usr/include/c++/6/fstream:38, from main.cpp:1: /usr/include/c++/6/bits/stl_pair.h:194:12: note: provided for 'template<class _T1, class _T2> struct std::pair' struct pair ^~~~ main.cpp: In function 'int cmp(const std::pair<std::pair<int, int>, int>&, const int&)': main.cpp:2:11: error: request for member 'first' in 'b', which is of non-class type 'const int' #define x first ^ main.cpp:23:23: note: in expansion of macro 'x' int c2 = cadran(b.x.x, b.x.y); ^ main.cpp:2:11: error: request for member 'first' in 'b', which is of non-class type 'const int' #define x first ^ main.cpp:23:30: note: in expansion of macro 'x' int c2 = cadran(b.x.x, b.x.y); ^ main.cpp:2:11: error: request for member 'first' in 'b', which is of non-class type 'const int' #define x first ^ main.cpp:27:43: note: in expansion of macro 'x' int d = det(0, 0, a.x.x, a.x.y, b.x.x, b.x.y); ^ main.cpp:2:11: error: request for member 'first' in 'b', which is of non-class type 'const int' #define x first ^ main.cpp:27:50: note: in expansion of macro 'x' int d = det(0, 0, a.x.x, a.x.y, b.x.x, b.x.y); ^ main.cpp:2:11: error: request for member 'first' in 'b', which is of non-class type 'const int' #define x first ^ main.cpp:31:46: note: in expansion of macro 'x' return a.x.x*a.x.x+a.x.y*a.x.y<b.x.x*b.x.x+b.x.y*b.x.y; ^ main.cpp:2:11: error: request for member 'first' in 'b', which is of non-class type 'const int' #define x first ^ main.cpp:31:52: note: in expansion of macro 'x' Non zero exit status: 1

Ceva nu functioneaza?