Borderou de evaluare (job #1749874)

Utilizator DenisONIcBanu Denis Andrei DenisONIc Data 28 august 2016 23:24:12
Problema Project management Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 91

Raport evaluator

Compilare: user.cpp: In function ‘int dfs(int)’: user.cpp:21:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=0;i<H[nod].size();i++) ^ user.cpp: In function ‘void dfs2(int, int)’: user.cpp:36:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=0;i<H[nod].size();i++) ^ user.cpp: In function ‘int main()’: user.cpp:45:19: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld",&n); ^ user.cpp:47:26: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld",&v[i]); ^ user.cpp:52:24: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld",&nr); ^ user.cpp:55:27: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld",&x); ^ user.cpp:43:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("pm2.in","r",stdin); ^ user.cpp:45:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&n); ^ user.cpp:47:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&v[i]); ^ user.cpp:52:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&nr); ^ user.cpp:55: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
10ms416kbOK!10
20ms416kbOK!10
30ms424kbOK!10
40ms416kbOK!10
50ms448kbOK!10
60ms452kbA doua valoare gresita!7
70ms416kbA doua valoare gresita!7
80ms424kbOK!10
90ms428kbA doua valoare gresita!7
100ms424kbOK!10
Punctaj total91

Ceva nu functioneaza?