Pagini recente » Borderou de evaluare (job #1317647) | Borderou de evaluare (job #1803890) | Borderou de evaluare (job #1175812) | Borderou de evaluare (job #956395) | Borderou de evaluare (job #1776519)
Borderou de evaluare (job #1776519)
Raport evaluator
Compilare:
user.cpp: In function ‘void Update(int)’:
user.cpp:11: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:16: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:21:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("swap.in","r",stdin);
^
user.cpp:22:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("swap.out","w",stdout);
^
user.cpp:25:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s%s",a,b);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 276kb | OK | 10 |
| 2 | 0ms | 260kb | OK | 10 |
| 3 | 0ms | 304kb | OK | 10 |
| 4 | 0ms | 396kb | OK | 10 |
| 5 | 4ms | 700kb | OK | 10 |
| 6 | 28ms | 968kb | OK | 10 |
| 7 | 4ms | 984kb | OK | 10 |
| 8 | 8ms | 984kb | OK | 10 |
| 9 | 4ms | 972kb | OK | 10 |
| 10 | 4ms | 1052kb | OK | 10 |
| Punctaj total | 100 |