Borderou de evaluare (job #2597822)

Utilizator cyg_vladioanBirsan Vlad cyg_vladioan Data 11 aprilie 2020 11:25:10
Problema Freakadebunic Status done
Runda Fmi No Stress 9 Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'void dfs1(int)': main.cpp:14:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j = 0 ; j < G[u].size() ; j ++) ~~^~~~~~~~~~~~~ main.cpp: In function 'void dfs2(int)': main.cpp:29: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:62:31: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type {aka long unsigned int}' [-Wformat=] printf("%d\n" , ans.size()); ^ main.cpp:63:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i = 0 ; i < ans.size() ; i ++) ~~^~~~~~~~~~~~ main.cpp:44:36: warning: unused variable 'j' [-Wunused-variable] int n , k , x , y , i , root , j; ^ main.cpp:42:46: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("freakadebunic.in" , "r" , stdin); ^ main.cpp:43:48: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("freakadebunic.out" , "w" , stdout); ^ main.cpp:45:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d" , &n , &k); ^ main.cpp:48:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d" , &x); ^ main.cpp:53:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d" , &x , &y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
17ms3014kbOK10
29ms3014kbOK10
39ms3014kbOK10
412ms3014kbOK10
512ms3014kbOK10
612ms3145kbOK10
7179ms6946kbOK10
8181ms6946kbOK10
9174ms6815kbOK10
10163ms6553kbOK10
Punctaj total100

Ceva nu functioneaza?