Borderou de evaluare (job #1246243)

Utilizator stefan.friptuPetru Stefan Friptu stefan.friptu Data 20 octombrie 2014 20:07:14
Problema Datorii Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘long int query(long int)’: user.cpp:17:30: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] for (; x; x -= x ^ (x-1) & x) ^ user.cpp: In function ‘void update(long int, long int)’: user.cpp:24:35: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] for (; x <= n; x += x^(x-1) & x) ^ user.cpp: In function ‘int main()’: user.cpp:31:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("datorii.in","r",stdin); ^ user.cpp:32:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("datorii.out","w",stdout); ^ user.cpp:34:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld %ld",&n,&m); ^ user.cpp:36:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&val); ^ user.cpp:42:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%ld",&l); ^ user.cpp:44:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld %ld",&st,&dr); ^ user.cpp:51:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld %ld",&ind,&val); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
188ms304kbRaspuns incorect0
288ms304kbRaspuns incorect0
388ms300kbRaspuns incorect0
492ms304kbRaspuns incorect0
588ms308kbRaspuns incorect0
Punctaj total0

Ceva nu functioneaza?