Borderou de evaluare (job #1749921)

Utilizator DenisONIcBanu Denis Andrei DenisONIc Data 29 august 2016 10:49:40
Problema Project management Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

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:53:24: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld",&nr); ^ user.cpp:56: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:53:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&nr); ^ user.cpp:56: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
10ms420kbOK!10
20ms420kbOK!10
30ms424kbOK!10
40ms420kbOK!10
50ms444kbOK!10
60ms456kbOK!10
70ms416kbOK!10
80ms428kbOK!10
90ms432kbOK!10
100ms420kbOK!10
Punctaj total100

Ceva nu functioneaza?