Pagini recente » Borderou de evaluare (job #1433355) | Borderou de evaluare (job #2149538) | Borderou de evaluare (job #2795336) | Borderou de evaluare (job #2708963) | Borderou de evaluare (job #1736726)
Borderou de evaluare (job #1736726)
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:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("costperm.in","r",stdin);
^
user.cpp:17:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("costperm.out","w",stdout);
^
user.cpp:20:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:22:23: 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 |
1 | 0ms | 288kb | OK | 10 |
2 | 0ms | 284kb | OK | 10 |
3 | 0ms | 284kb | OK | 10 |
4 | 36ms | 648kb | OK | 10 |
5 | 32ms | 632kb | OK | 10 |
6 | 28ms | 608kb | OK | 10 |
7 | 36ms | 648kb | OK | 10 |
8 | 32ms | 628kb | OK | 10 |
9 | 32ms | 600kb | OK | 10 |
10 | 36ms | 656kb | OK | 10 |
Punctaj total | 100 |