Borderou de evaluare (job #2690837)
| Utilizator | Data | 26 decembrie 2020 10:38:11 | |
|---|---|---|---|
| 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:27:20: error: expected ')' before 'c'
c.insert(a[i][j].F);
^
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 !
