Borderou de evaluare (job #1787992)

Utilizator DenisONIcBanu Denis Andrei DenisONIc Data 25 octombrie 2016 13:49:45
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:16: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:38:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=0;i<H[nod].size();i++) ^ user.cpp:41:17: warning: unused variable ‘x’ [-Wunused-variable] if (int x=dfs2(H[nod][i],nr+1)) ^ user.cpp: In function ‘int main()’: user.cpp:53: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:53:37: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=] user.cpp:53:37: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 4 has type ‘int*’ [-Wformat=] user.cpp:53:37: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 5 has type ‘int*’ [-Wformat=] user.cpp:58:29: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld%ld",&x,&y); ^ user.cpp:58:29: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=] user.cpp:52: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:53: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:58: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
10ms504kbIncorect0
2Depăşit488kbTime limit exceeded.0
30ms512kbIncorect0
4Depăşit484kbTime limit exceeded.0
54ms508kbIncorect0
6Depăşit1100kbTime limit exceeded.0
7Depăşit744kbTime limit exceeded.0
8Depăşit924kbTime limit exceeded.0
9Depăşit1048kbTime limit exceeded.0
10Depăşit952kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?