Borderou de evaluare (job #1787996)

Utilizator DenisONIcBanu Denis Andrei DenisONIc Data 25 octombrie 2016 13:56:51
Problema Graf Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int dfs(int, int)’: user.cpp:17:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=0;i<H[nod].size();i++) ^ user.cpp: In function ‘int dfs2(int, int)’: user.cpp:39:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=0;i<H[nod].size();i++) ^ user.cpp:44:21: warning: unused variable ‘x’ [-Wunused-variable] if (int x=dfs2(H[nod][i],nr+1)) ^ user.cpp: In function ‘int main()’: user.cpp:58:37: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld%ld%ld%ld",&n,&m,&X,&Y); ^ user.cpp:58:37: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=] user.cpp:58:37: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 4 has type ‘int*’ [-Wformat=] user.cpp:58:37: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 5 has type ‘int*’ [-Wformat=] user.cpp:63:29: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld%ld",&x,&y); ^ user.cpp:63:29: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=] user.cpp:57:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("graf.in","r",stdin); ^ user.cpp:58:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld%ld%ld%ld",&n,&m,&X,&Y); ^ user.cpp:63:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld%ld",&x,&y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms516kbIncorect0
2Depăşit492kbTime limit exceeded.0
30ms516kbIncorect0
4Depăşit496kbTime limit exceeded.0
50ms516kbIncorect0
6Depăşit1084kbTime limit exceeded.0
7Depăşit740kbTime limit exceeded.0
8Depăşit924kbTime limit exceeded.0
9Depăşit1044kbTime limit exceeded.0
10Depăşit940kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?