Borderou de evaluare (job #1740298)

Utilizator fanache99Constantin-Buliga Stefan fanache99 Data 11 august 2016 13:38:05
Problema Kami Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘void FenwickUpdate(int, long long int)’: user.cpp:9:10: warning: statement has no effect [-Wunused-value] for(x;x>0;x=x-((x&(x-1))^x)) ^ user.cpp: In function ‘long long int FenwickQuery(int)’: user.cpp:14:10: warning: statement has no effect [-Wunused-value] for(x;x<=n;x=x+((x&(x-1))^x)) ^ user.cpp: In function ‘int main()’: user.cpp:91:38: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] scanf("%d%d",&x,&newValue); ^ user.cpp:75:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("kami.in","r",stdin); ^ user.cpp:76:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("kami.out","w",stdout); ^ user.cpp:78:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:80:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld",&value[i]); ^ user.cpp:87:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&m); ^ user.cpp:89:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&type); ^ user.cpp:91:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&x,&newValue); ^ user.cpp:105:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&x); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms280kbOK1010
20ms332kbIncorect00
3292ms6708kbIncorect00
4108ms3264kbIncorect00
5140ms3504kbIncorect00
6136ms3500kbIncorect00
7224ms5372kbIncorect00
8300ms6708kbIncorect0
9316ms6708kbIncorect0
10316ms6708kbIncorect00
Punctaj total10

Ceva nu functioneaza?