Borderou de evaluare (job #2203368)

Utilizator vlcmodanModan Valentin vlcmodan Data 12 mai 2018 01:44:20
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void dijkstra()’: user.cpp:27:26: error: ‘memset’ was not declared in this scope memset(distanta,15 , 100); ^ user.cpp:35:7: warning: unused variable ‘dist’ [-Wunused-variable] int dist = h.begin()->first; ^~~~ user.cpp:26:6: warning: unused variable ‘ma’ [-Wunused-variable] int ma = inf; ^~ user.cpp: In function ‘void read()’: user.cpp:56:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &n, &m); ^ user.cpp:60:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d", &x, &y, &length); ^ user.cpp: In function ‘int main()’: user.cpp:75:36: 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); ^ user.cpp:76:38: 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); ^

Ceva nu functioneaza?