Borderou de evaluare (job #2690836)
| Utilizator | Data | 26 decembrie 2020 10:35:39 | |
|---|---|---|---|
| Problema | Algoritmul lui Dijkstra | 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:17:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(i=2;i<=n;i++)
^~~
main.cpp:19:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for(c.insert(1);!c.empty();)
^~~
main.cpp:26:20: error: no match for 'operator!' (operand type is 'std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}')
if(!c.find(a[i][j].F))
^~~~~~~~~~~~~~~~~~
main.cpp:26:20: note: candidate: operator!(bool) <built-in>
main.cpp:26:20: note: no known conversion for argument 1 from 'std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}' to 'bool'
main.cpp:14:89: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("dijkstra.in","r",stdin),freopen("dijkstra.out","w",stdout),scanf("%d%d",&n,&m);
^
main.cpp:14:89: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
main.cpp:14:89: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
main.cpp:16:43: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&i,&j,&k),a[i].P({j,k});
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
