Borderou de evaluare (job #2846973)
Utilizator | Data | 9 februarie 2022 21:47:16 | |
---|---|---|---|
Problema | Dragoni | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:42: error: template argument 1 is invalid
9 | priority_queue< pair<int, pair<int,int>> q;
| ^
main.cpp:9:42: error: template argument 2 is invalid
main.cpp:9:42: error: template argument 3 is invalid
main.cpp: In function 'void dfs(int)':
main.cpp:13:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
13 | for(int i=0; i<v[nod].size(); i++)
| ~^~~~~~~~~~~~~~
main.cpp: In function 'void solve()':
main.cpp:26:12: error: 'q' was not declared in this scope
26 | while(!q.empty())
| ^
main.cpp:30:14: error: 'nod' was not declared in this scope
30 | if(d[nod]>d[gr])
| ^~~
main.cpp:30:21: error: 'gr' was not declared in this scope
30 | if(d[nod]>d[gr])
| ^~
main.cpp:35:26: error: 'nod' was not declared in this scope
35 | for(int i=0; i<v[nod].size(); i++)
| ^~~
main.cpp:36:18: error: 'gr' was not declared in this scope
36 | if(d[gr]>=v[nod][i].second && dd+v[nod][i].second<dp[v[nod][i].first][gr] && dd+v[nod][i].second<minn)
| ^~
main.cpp: In function 'int main()':
main.cpp:63:9: error: 'q' was not declared in this scope
63 | q.push({0, {1, 1}});
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !