Borderou de evaluare (job #3229944)
Utilizator | Data | 18 mai 2024 13:44:40 | |
---|---|---|---|
Problema | Timbre | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:14:56: error: 'compareCosts' was not declared in this scope
14 | priority_queue<pair<int, int>, vector<pair<int, int>>, compareCosts>costs;
| ^~~~~~~~~~~~
main.cpp:14:68: error: template argument 3 is invalid
14 | priority_queue<pair<int, int>, vector<pair<int, int>>, compareCosts>costs;
| ^
main.cpp: In function 'int main()':
main.cpp:37:13: error: request for member 'push' in 'costs', which is of non-class type 'int'
37 | costs.push(intervals.top());
| ^~~~
main.cpp:42:24: error: request for member 'top' in 'costs', which is of non-class type 'int'
42 | costTotal += costs.top();
| ^~~
main.cpp:43:11: error: request for member 'pop' in 'costs', which is of non-class type 'int'
43 | costs.pop();
| ^~~
main.cpp:34:9: warning: unused variable 'costmin' [-Wunused-variable]
34 | int costmin = INT_MAX;
| ^~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !