Borderou de evaluare (job #3032149)
Utilizator | Data | 21 martie 2023 15:44:53 | |
---|---|---|---|
Problema | Proc2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:17: error: two or more data types in declaration of 'type name'
8 | priority_queue <int greater<int>> nefol;
| ^~~
main.cpp:8:32: error: template argument 1 is invalid
8 | priority_queue <int greater<int>> nefol;
| ^~
main.cpp:8:32: error: template argument 2 is invalid
main.cpp:8:32: error: template argument 3 is invalid
main.cpp:9:55: error: no type named 'value_type' in 'struct std::greater<std::pair<int, int> >'
9 | priority_queue <pair<int,int>, greater<pair<int, int>>> fol;
| ^
main.cpp:9:55: error: template argument 3 is invalid
main.cpp: In function 'int main()':
main.cpp:27:15: error: request for member 'push' in 'nefol', which is of non-class type 'int'
27 | nefol.push(i); //indice procesor
| ^~~~
main.cpp:33:23: error: request for member 'empty' in 'fol', which is of non-class type 'int'
33 | while(fol.empty != 0 && p[i].st > fol.top().first) //nu e empty
| ^~~~~
main.cpp:33:51: error: request for member 'top' in 'fol', which is of non-class type 'int'
33 | while(fol.empty != 0 && p[i].st > fol.top().first) //nu e empty
| ^~~
main.cpp:35:26: error: request for member 'top' in 'fol', which is of non-class type 'int'
35 | pr = fol.top();
| ^~~
main.cpp:36:23: error: request for member 'push' in 'nefol', which is of non-class type 'int'
36 | nefol.push(pr.second);
| ^~~~
main.cpp:37:21: error: request for member 'pop' in 'fol', which is of non-class type 'int'
37 | fol.pop();
| ^~~
main.cpp:40:25: error: request for member 'top' in 'nefol', which is of non-class type 'int'
40 | ind = nefol.top();
| ^~~
main.cpp:41:19: error: request for member 'pop' in 'nefol', which is of non-class type 'int'
41 | nefol.pop();
| ^~~
main.cpp:42:17: error: request for member 'push' in 'fol', which is of non-class type 'int'
42 | fol.push(make_pair(p[i].st + p[i].dt, ind))
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !