Borderou de evaluare (job #1813823)

Utilizator DenisONIcBanu Denis Andrei DenisONIc Data 23 noiembrie 2016 13:03:20
Problema Lowest Common Ancestor Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 100

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
10ms1636kbOK1010
20ms1724kbOK1010
316ms4096kbOK1010
4180ms18572kbOK1010
5212ms31044kbOK1010
6316ms31044kbOK1010
7936ms36364kbOK1010
81572ms31044kbOK1030
91940ms31048kbOK10
102188ms31044kbOK10
Punctaj total100

Ceva nu functioneaza?