Borderou de evaluare (job #2460231)

Utilizator ArkinyStoica Alex Arkiny Data 23 septembrie 2019 09:56:03
Problema Aliniate Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int DFS(int)': main.cpp:35:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < G[x].size(); ++i) ~~^~~~~~~~~~~~~ main.cpp:53:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(nr == original[x].y - original[x].x + 1 && c!=child_v) ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: At global scope: main.cpp:72:19: error: wrong number of template arguments (1, should be at least 2) map<pair<int,int> > mp; ^ In file included from /usr/include/c++/6/map:61:0, from main.cpp:9: /usr/include/c++/6/bits/stl_map.h:96:11: note: provided for 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map' class map ^~~ main.cpp: In function 'int main()': main.cpp:95:10: error: request for member 'find' in 'mp', which is of non-class type 'int' if(mp.find(make_pair(x,y)) == mp.end()) ^~~~ main.cpp:95:37: error: request for member 'end' in 'mp', which is of non-class type 'int' if(mp.find(make_pair(x,y)) == mp.end()) ^~~ main.cpp:99:10: error: no match for 'operator[]' (operand types are 'int' and 'std::pair<long long unsigned int, long long unsigned int>') mp[make_pair(x,y)] = c,++l; ^ main.cpp:103:17: error: no match for 'operator[]' (operand types are 'int' and 'std::pair<long long unsigned int, long long unsigned int>') if(mp[make_pair(x,y)] != c) ^ main.cpp:111:17: error: 'cout' was not declared in this scope cout<<ok<<"\n"; ^~~~ main.cpp:112:21: error: request for member 'clear' in 'mp', which is of non-class type 'int' mp.clear(); ^~~~~ main.cpp:169:6: error: request for member 'clear' in 'mp', which is of non-class type 'int' mp.clear(); ^~~~~ Non zero exit status: 1

Ceva nu functioneaza?