Borderou de evaluare (job #2498133)
Utilizator | Data | 23 noiembrie 2019 15:45:16 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:48:25: error: ISO C++ forbids declaration of 'Swap' with no type [-fpermissive]
inline Swap(int x, int y){
^
main.cpp: In function 'int Swap(int, int)':
main.cpp:52:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
main.cpp: In function 'int main()':
main.cpp:95:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0; j < edges[node].size(); j++){
~~^~~~~~~~~~~~~~~~~~~~
main.cpp:96:17: warning: unused variable 'z' [-Wunused-variable]
int z = edges[node][j].x;
^
main.cpp:82:20: warning: unused variable 'nrNodes' [-Wunused-variable]
int Min, node, nrNodes = 0;
^~~~~~~
main.cpp: In function 'void Read(int&)':
main.cpp:29:42: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fread(f, MAX, 1, IN), pos = 0;
^
main.cpp:34:42: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fread(f, MAX, 1, IN), pos = 0;
^
main.cpp: In function 'int main()':
main.cpp:76:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("apm.out", "w", stdout);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !