Borderou de evaluare (job #2751688)

Utilizator gabrielanideleaNidelea Gabriela-Andreea gabrielanidelea Data 15 mai 2021 16:23:53
Problema Zeap Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:11:68: error: 'comp' was not declared in this scope priority_queue < pair<int,int> , vector<pair<int,int>> , decltype(&comp) > dife(comp); ^~~~ main.cpp:11:74: error: template argument 3 is invalid priority_queue < pair<int,int> , vector<pair<int,int>> , decltype(&comp) > dife(comp); ^ main.cpp:11:81: error: 'comp' was not declared in this scope priority_queue < pair<int,int> , vector<pair<int,int>> , decltype(&comp) > dife(comp); ^~~~ main.cpp: In function 'int main()': main.cpp:41:30: error: request for member 'push' in 'dife', which is of non-class type 'int' dife.push(make_pair(*p, *q)); ^~~~ main.cpp:49:30: error: request for member 'push' in 'dife', which is of non-class type 'int' dife.push(make_pair(*q, *p)); ^~~~ main.cpp:68:30: error: request for member 'push' in 'dife', which is of non-class type 'int' dife.push(make_pair(*q, *p)); ^~~~ main.cpp:98:39: error: request for member 'top' in 'dife', which is of non-class type 'int' while(s.find(dife.top().first)==s.end() || s.find(dife.top().second)==s.end()) ^~~ main.cpp:98:76: error: request for member 'top' in 'dife', which is of non-class type 'int' while(s.find(dife.top().first)==s.end() || s.find(dife.top().second)==s.end()) ^~~ main.cpp:99:31: error: request for member 'pop' in 'dife', which is of non-class type 'int' {dife.pop();} ^~~ main.cpp:100:29: error: request for member 'top' in 'dife', which is of non-class type 'int' g<<dife.top().first - dife.top().second<< '\n'; ^~~ main.cpp:100:48: error: request for member 'top' in 'dife', which is of non-class type 'int' g<<dife.top().first - dife.top().second<< '\n'; ^~~ Non zero exit status: 1

Ceva nu functioneaza?