Borderou de evaluare (job #1249556)

Utilizator HotSteelBeteag Ion Andrei HotSteel Data 27 octombrie 2014 09:49:31
Problema Arbori indexati binar Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘void update(int, int)’: user.cpp:3:18: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define lp2(x) (x&(x-1)^x) ^ user.cpp:12:26: note: in expansion of macro ‘lp2’ for( ; p <= n ; p += lp2(p)) ^ user.cpp: In function ‘int query(int)’: user.cpp:3:18: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define lp2(x) (x&(x-1)^x) ^ user.cpp:20:21: note: in expansion of macro ‘lp2’ for( ; p ; p -= lp2(p)) ^ user.cpp: In function ‘int main()’: user.cpp:88:32: warning: format ‘%d’ expects a matching ‘int*’ argument [-Wformat=] scanf("%d%d",&a); ^ user.cpp:53:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("aib.in" , "r" , stdin); ^ user.cpp:54:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("aib.out", "w", stdout); ^ user.cpp:57:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&n,&m); ^ user.cpp:63:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&tmp); ^ user.cpp:70:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&op); ^ user.cpp:76:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&a,&b); ^ user.cpp:82:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&a,&b); ^ user.cpp:88:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&a); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms248kbKilled by signal 11(SIGSEGV).0
20ms252kbKilled by signal 11(SIGSEGV).0
30ms272kbIncorect0
44ms348kbIncorect0
58ms388kbKilled by signal 11(SIGSEGV).0
612ms504kbKilled by signal 11(SIGSEGV).0
720ms580kbKilled by signal 11(SIGSEGV).0
824ms636kbKilled by signal 11(SIGSEGV).0
924ms640kbIncorect0
1024ms640kbIncorect0
Punctaj total0

Ceva nu functioneaza?