Borderou de evaluare (job #2875834)
Utilizator | Data | 22 martie 2022 13:35:26 | |
---|---|---|---|
Problema | Sortare topologica | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:34:27: error: expected ';' before 'auto'
34 | while (!pq.empty()) {1
| ^
| ;
35 | auto nod = pq.top();
| ~~~~
main.cpp:34:26: warning: statement has no effect [-Wunused-value]
34 | while (!pq.empty()) {1
| ^
main.cpp:37:28: error: 'nod' was not declared in this scope
37 | if (alreadyChecked[nod.first] || nod.second != in_degree[nod.first].size()) {
| ^~~
main.cpp:40:24: error: 'nod' was not declared in this scope
40 | if (!in_degree[nod.first].empty()) {
| ^~~
main.cpp:43:24: error: 'nod' was not declared in this scope
43 | alreadyChecked[nod.first] = true;
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !