Borderou de evaluare (job #2514273)
Utilizator | Data | 25 decembrie 2019 00:28:42 | |
---|---|---|---|
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 'void read()':
main.cpp:24:15: error: expected primary-expression before '%' token
scanf(%d%d%d, &a, &b, &c);
^
main.cpp:24:16: error: 'd' was not declared in this scope
scanf(%d%d%d, &a, &b, &c);
^
main.cpp: In function 'int main()':
main.cpp:61:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
printf("%d", dist[i] == y ? 0 : dist[i]);
~~~~~~~~^~~~
main.cpp: In function 'void read()':
main.cpp:18:39: 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);
^
main.cpp:19:41: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("dijkstra.out", "w", stdout);
^
main.cpp:20:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &N, &M);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !