Borderou de evaluare (job #2587815)

Utilizator rares404AlShaytan - Balasescu Rares rares404 Data 23 martie 2020 16:39:55
Problema Covor Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:68:32: error: '__unwrap_ref_decay' in namespace 'std' does not name a template type static std::pair<typename std::__unwrap_ref_decay<int &>::type, typename std::__unwrap_ref_decay<short &>::type> MP(int i, int lin, int &poz) { ^~~~~~~~~~~~~~~~~~ main.cpp:68:50: error: expected template-argument before '<' token static std::pair<typename std::__unwrap_ref_decay<int &>::type, typename std::__unwrap_ref_decay<short &>::type> MP(int i, int lin, int &poz) { ^ main.cpp:68:50: error: expected '>' before '<' token main.cpp:68:112: error: wrong number of template arguments (1, should be 2) static std::pair<typename std::__unwrap_ref_decay<int &>::type, typename std::__unwrap_ref_decay<short &>::type> MP(int i, int lin, int &poz) { ^ 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/ostream:38, from /usr/include/c++/6/iostream:39, from main.cpp:9: /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 MP(int, int, int&)': main.cpp:69:44: error: cannot convert 'std::pair<int, short int>' to 'int' in return return std::make_pair(poz, height[lin][i]); ^ main.cpp: At global scope: main.cpp:72:32: error: '__unwrap_ref_decay' in namespace 'std' does not name a template type static std::pair<typename std::__unwrap_ref_decay<int &>::type, typename std::__unwrap_ref_decay<short &>::type> MP(int &i, int lin) { ^~~~~~~~~~~~~~~~~~ main.cpp:72:50: error: expected template-argument before '<' token static std::pair<typename std::__unwrap_ref_decay<int &>::type, typename std::__unwrap_ref_decay<short &>::type> MP(int &i, int lin) { ^ main.cpp:72:50: error: expected '>' before '<' token main.cpp:72:112: error: wrong number of template arguments (1, should be 2) static std::pair<typename std::__unwrap_ref_decay<int &>::type, typename std::__unwrap_ref_decay<short &>::type> MP(int &i, int lin) { ^ 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/ostream:38, from /usr/include/c++/6/iostream:39, from main.cpp:9: /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 MP(int&, int)': main.cpp:73:41: error: cannot convert 'std::pair<int, short int>' to 'int' in return return std::make_pair(i, height[lin][i]); ^ main.cpp: In function 'void eval(int)': main.cpp:88:25: error: no matching function for call to 'Stiva<std::pair<int, int> >::push(int)' stiva.push(MP(i, lin)) ; Non zero exit status: 1

Ceva nu functioneaza?