Borderou de evaluare (job #1324304)

Utilizator atatomirTatomir Alex atatomir Data 22 ianuarie 2015 08:27:53
Problema Pioni Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘void dfs(long int)’: user.cpp:19:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(long i=0;i<list[node].size();i++){ ^ user.cpp: In function ‘int main()’: user.cpp:55:44: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘std::vector<long int>::size_type {aka unsigned int}’ [-Wformat=] printf("Nargy\n%ld ",ans.size()); ^ user.cpp:56:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0;i<ans.size();i++) printf("%ld %ld ",ans[i],son[ans[i]]); ^ user.cpp:32:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("pioni.in","r",stdin); ^ user.cpp:33:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("pioni.out","w",stdout); ^ user.cpp:35:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld %ld %ld",&t,&n,&m); ^ user.cpp:37:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld %ld",&x,&y); ^ user.cpp:46:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&k); ^ user.cpp:48:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&x); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms684kbOK!!10
20ms700kbOK!!10
30ms720kbRaspuns gresit0
412ms816kbRaspuns gresit0
516ms908kbRaspuns gresit0
620ms952kbRaspuns gresit0
740ms1128kbRaspuns gresit0
856ms1224kbRaspuns gresit0
972ms1308kbRaspuns gresit0
100ms676kbRaspuns gresit0
Punctaj total20

Ceva nu functioneaza?