Borderou de evaluare (job #1729307)
Utilizator | Data | 14 iulie 2016 16:04:38 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:36: error: template argument 1 is invalid
priority_queue < pair < int, int > Q;
^
user.cpp:9:36: error: template argument 2 is invalid
user.cpp:9:36: error: template argument 3 is invalid
user.cpp:10:33: error: template argument 1 is invalid
vector < pair <int, int > G[NMax];
^
user.cpp:10:33: error: template argument 2 is invalid
user.cpp: In function ‘void citire()’:
user.cpp:15:26: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int*’ [-Wformat=]
printf("%d%d", &N, &M);
^
user.cpp:15:26: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘int*’ [-Wformat=]
user.cpp:17:9: error: ‘i’ was not declared in this scope
for(i=1; i<=M; i++)
^
user.cpp:19:35: error: expected primary-expression before ‘)’ token
printf("%d%d", &x, &y, &c+);
^
user.cpp:20:9: error: ‘G’ was not declared in this scope
G[x].push_back(make_pair(c,y));
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !