Borderou de evaluare (job #1856585)
| Utilizator | Data | 25 ianuarie 2017 08:01:48 | |
|---|---|---|---|
| Problema | Algoritmul Bellman-Ford | Status | done |
| Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:47:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (auto it=1;it<g[node].size();it++)
^
user.cpp:49:24: error: request for member ‘next’ in ‘it’, which is of non-class type ‘int’
if(best[it.next]>best[node]+it.cost)
^
user.cpp:49:44: error: request for member ‘cost’ in ‘it’, which is of non-class type ‘int’
if(best[it.next]>best[node]+it.cost)
^
user.cpp:51:22: error: expected ‘;’ before ‘it’
best it.next=best[node]+it.cost;
^
user.cpp:51:48: warning: statement has no effect [-Wunused-value]
best it.next=best[node]+it.cost;
^
user.cpp:53:23: error: request for member ‘next’ in ‘it’, which is of non-class type ‘int’
if (in[it.next]==false)
^
user.cpp:55:27: error: request for member ‘next’ in ‘it’, which is of non-class type ‘int’
Q.push(it.next);
^
user.cpp:59:22: error: expected ‘;’ before ‘)’ token
for (int i=2;i<=N) out<<best[i]<<" ";
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
