Borderou de evaluare (job #2026380)

Utilizator LurchssLaurentiu Duma Lurchss Data 24 septembrie 2017 13:15:30
Problema Algoritmul lui Dijkstra Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:22:1: error: ‘bitset’ does not name a type bitset<MAX_N> viz; ^ user.cpp: In function ‘void read()’: user.cpp:25:12: error: ‘viz’ was not declared in this scope memset(viz, 0 ,sizeof(viz)); ^ user.cpp: In function ‘void solve()’: user.cpp:46:12: error: ‘viz’ was not declared in this scope if(viz[node]) ^ user.cpp:48:9: error: ‘viz’ was not declared in this scope viz[node] = 1; ^ user.cpp: In function ‘void read()’: user.cpp:26:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n",&n, &m); ^ user.cpp:31:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d\n",&x,&y,&z); ^ user.cpp: In function ‘int main()’: user.cpp:71:37: 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:72:39: 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?