Borderou de evaluare (job #1462427)

Utilizator StarGold2Emanuel Nrx StarGold2 Data 18 iulie 2015 00:30:23
Problema Stramosi Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void DFS(int)’: user.cpp:20:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < Q[nod].size(); i += 2){ ^ user.cpp:31:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < V[nod].size(); i ++){ ^ user.cpp:33:3: error: ‘vec’ was not declared in this scope vec = V[nod][i]; ^ user.cpp: In function ‘int main()’: user.cpp:42:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("stramosi.in" ,"r", stdin ); ^ user.cpp:43:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("stramosi.out","w", stdout); ^ user.cpp:45: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:49:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &X); ^ user.cpp:56:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &X, &Y); ^

Ceva nu functioneaza?