Borderou de evaluare (job #1850216)

Utilizator DenisONIcBanu Denis Andrei DenisONIc Data 18 ianuarie 2017 12:43:35
Problema Lowest Common Ancestor Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘void dfs(int, int)’: user.cpp:28:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=0;i<F[nod].size();i++) ^ user.cpp: In function ‘int main()’: user.cpp:44:25: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld%ld",&n,&m); ^ user.cpp:44:25: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=] user.cpp:47:28: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld",&t[i+1]); ^ user.cpp:52:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=1;i<E.size();i++) ^ user.cpp:55:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=1;(1<<i)<E.size();i++) ^ user.cpp:56:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j=0;j+(1<<i)-1<E.size();j++) ^ user.cpp:61:45: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] rmq[i][j] = rmq[i-1][j+(1<<i-1)]; ^ user.cpp:67:29: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld%ld",&x,&y); ^ user.cpp:67:29: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=] 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("lca.in","r",stdin); ^ user.cpp:44: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:47:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&t[i+1]); ^ user.cpp:67: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
10ms1652kbIncorect00
20ms1760kbIncorect00
320ms4128kbIncorect00
4184ms18568kbIncorect00
5220ms31120kbIncorect00
6324ms31116kbIncorect00
7956ms36432kbIncorect00
81588ms31112kbIncorect00
92024ms31112kbIncorect0
102192ms31112kbIncorect0
Punctaj total0

Ceva nu functioneaza?