Pagini recente » Borderou de evaluare (job #497142) | Borderou de evaluare (job #771461) | Borderou de evaluare (job #2879631) | Borderou de evaluare (job #181422) | Borderou de evaluare (job #1455302)
Borderou de evaluare (job #1455302)
Raport evaluator
Compilare:
user.cpp: In function ‘int query(int)’:
user.cpp:15: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:21:10: warning: statement has no effect [-Wunused-value]
for(x;x<=10000;x+=(x&(x-1))^x)
^
user.cpp: In function ‘int main()’:
user.cpp:28:35: warning: unused variable ‘valmax’ [-Wunused-variable]
int maxim=0,i,poz,rez=0,j,a,b,valmax=-1;
^
user.cpp:26: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:27: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:30:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n1);
^
user.cpp:32:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&v1[i]);
^
user.cpp:59:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n2);
^
user.cpp:61:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&v2[i]);
^
user.cpp:87:20: warning: ‘poz’ may be used uninitialized in this function [-Wmaybe-uninitialized]
poz=up[poz];
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 420kb | OK! | 10 |
2 | 0ms | 444kb | OK! | 10 |
3 | 4ms | 464kb | OK! | 10 |
4 | 4ms | 480kb | OK! | 10 |
5 | 8ms | 504kb | OK! | 10 |
6 | 8ms | 528kb | OK! | 10 |
7 | 12ms | 544kb | OK! | 10 |
8 | 12ms | 564kb | OK! | 10 |
9 | 16ms | 584kb | OK! | 10 |
10 | 16ms | 584kb | OK! | 10 |
Punctaj total | 100 |