Borderou de evaluare (job #2556507)

Utilizator cyg_vladioanBirsan Vlad cyg_vladioan Data 24 februarie 2020 22:54:06
Problema Sate Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void dfs(int)': main.cpp:18:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j = 0 ; j < G[u].size() ; j ++) ~~^~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:36:15: error: 'gets' was not declared in this scope gets(s); ^ main.cpp:39:21: warning: NULL used in arithmetic [-Wpointer-arith] while(*p != NULL) ^~~~ main.cpp:45:23: warning: NULL used in arithmetic [-Wpointer-arith] while((*p) != NULL) ^~~~ main.cpp:51:23: warning: NULL used in arithmetic [-Wpointer-arith] while((*p) != NULL) ^~~~ main.cpp:32:50: warning: unused variable 'j' [-Wunused-variable] int n , m , start , finish , x , y , z , i , j , ok , l; ^ main.cpp:32:54: warning: unused variable 'ok' [-Wunused-variable] int n , m , start , finish , x , y , z , i , j , ok , l; ^~ main.cpp:32:59: warning: unused variable 'l' [-Wunused-variable] int n , m , start , finish , x , y , z , i , j , ok , l; ^ main.cpp:30:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("sate.in" , "r" , stdin); ^ main.cpp:31:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("sate.out" , "w" , stdout); ^ main.cpp:33:53: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d%d\n" , &n , &m , &start , &finish); ^ Non zero exit status: 1

Ceva nu functioneaza?