Borderou de evaluare (job #2266060)
Utilizator | Data | 22 octombrie 2018 10:07:08 | |
---|---|---|---|
Problema | Camionas | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:13: error: conflicting declaration 'std::queue<int> c'
queue <int> c;
^
main.cpp:8:26: note: previous declaration as 'int* c [50005]'
int n, m, g, *a[50005], *c[50005], cost[50005];
^
main.cpp: In function 'void bfs(int)':
main.cpp:13:7: error: request for member 'push' in 'c', which is of non-class type 'int* [50005]'
c.push(x);
^~~~
main.cpp:16:15: error: request for member 'empty' in 'c', which is of non-class type 'int* [50005]'
while (!c.empty()) {
^~~~~
main.cpp:17:19: error: request for member 'front' in 'c', which is of non-class type 'int* [50005]'
int y = c.front();
^~~~~
main.cpp:23:11: error: request for member 'pop' in 'c', which is of non-class type 'int* [50005]'
c.pop();
^~~
main.cpp: In function 'int main()':
main.cpp:33:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &n, &m, &g);
^
main.cpp:44:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &x, &y, &g);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !