Borderou de evaluare (job #1813818)

Utilizator DenisONIcBanu Denis Andrei DenisONIc Data 23 noiembrie 2016 12:54:01
Problema Lowest Common Ancestor Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘void dfs(int, int)’: user.cpp:21:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=0;i<G[nod].size();i++) ^ user.cpp: In function ‘int main()’: user.cpp:49:25: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld%ld",&n,&m); ^ user.cpp:49:25: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=] user.cpp:52:26: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld",&t[i]); ^ user.cpp:74:29: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld%ld",&x,&y); ^ user.cpp:74:29: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=] user.cpp:47:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("lca.in","r",stdin); ^ user.cpp:49:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld%ld",&n,&m); ^ user.cpp:52:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&t[i]); ^ user.cpp:74: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 Punctaj/grupa
10ms1644kbIncorect00
20ms1728kbIncorect00
316ms4092kbIncorect00
4176ms18572kbIncorect00
5212ms31048kbIncorect00
6312ms31040kbIncorect00
7936ms36360kbOK1010
81564ms31044kbIncorect00
91984ms31044kbIncorect0
102216ms31044kbIncorect0
Punctaj total10

Ceva nu functioneaza?