Pagini recente » Borderou de evaluare (job #2065400) | Borderou de evaluare (job #190915) | Borderou de evaluare (job #2224018) | Borderou de evaluare (job #2456251) | Borderou de evaluare (job #1712977)
Borderou de evaluare (job #1712977)
Raport evaluator
Compilare:
user.cpp: In function ‘void update(int)’:
user.cpp:6:10: warning: statement has no effect [-Wunused-value]
for(x;x<=n;x=x+((x&(x-1))^x))
^
user.cpp: In function ‘int query(int)’:
user.cpp:11:10: warning: statement has no effect [-Wunused-value]
for(x;x>0;x=x-((x&(x-1))^x))
^
user.cpp: In function ‘int main()’:
user.cpp:16:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("permsort2.in","r",stdin);
^
user.cpp:17:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("permsort2.out","w",stdout);
^
user.cpp:19:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:21:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&v[i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 280kb | OK | 10 |
2 | 20ms | 628kb | OK | 10 |
3 | 36ms | 864kb | OK | 10 |
4 | 36ms | 864kb | OK | 10 |
5 | 36ms | 868kb | OK | 10 |
6 | 36ms | 868kb | OK | 10 |
7 | 76ms | 1440kb | OK | 10 |
8 | 76ms | 1444kb | OK | 10 |
9 | 76ms | 1440kb | OK | 10 |
10 | 0ms | 288kb | OK | 10 |
Punctaj total | 100 |