Borderou de evaluare (job #1455209)

Utilizator fanache99Constantin-Buliga Stefan fanache99 Data 27 iunie 2015 14:14:36
Problema Interclasare Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 50

Raport evaluator

Compilare: user.cpp: In function ‘int query(int)’: user.cpp:7:10: warning: statement has no effect [-Wunused-value] for(x;x>0;x-=(x&(x-1))^x) ^ user.cpp: In function ‘void update(int, int)’: user.cpp:13:10: warning: statement has no effect [-Wunused-value] for(x;x<=30000;x+=(x&(x-1))^x) ^ user.cpp: In function ‘int main()’: user.cpp:18:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("interclasare.in","r",stdin); ^ user.cpp:19:43: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("interclasare.out","w",stdout); ^ user.cpp:22:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n1); ^ user.cpp:24:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&v1[i]); ^ user.cpp:41:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n2); ^ user.cpp:43:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&v2[i]); ^ user.cpp:59:20: warning: ‘poz’ may be used uninitialized in this function [-Wmaybe-uninitialized] poz=up[poz]; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms484kbOK!10
20ms496kbOK!10
34ms496kbOK!10
44ms512kbOK!10
54ms516kbOK!10
6Depăşit436kbTime limit exceeded.0
7Depăşit508kbTime limit exceeded.0
8Depăşit520kbTime limit exceeded.0
9Depăşit532kbTime limit exceeded.0
10Depăşit536kbTime limit exceeded.0
Punctaj total50

Ceva nu functioneaza?