Borderou de evaluare (job #1246248)

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

Raport evaluator

Compilare: user.cpp: In function ‘long int query(long int)’: user.cpp:14: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:21: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:28: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:29: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:31: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:33:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&val); ^ user.cpp:39:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%ld",&l); ^ user.cpp:41: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:48: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
188ms308kbCorect!20
284ms312kbCorect!20
384ms304kbCorect!20
484ms308kbCorect!20
588ms308kbCorect!20
Punctaj total100

Ceva nu functioneaza?