Pagini recente » Borderou de evaluare (job #1807830) | Borderou de evaluare (job #1108574) | Borderou de evaluare (job #1580945) | Borderou de evaluare (job #2170274) | Borderou de evaluare (job #1273908)
Borderou de evaluare (job #1273908)
Raport evaluator
Compilare:
user.cpp: In function ‘void update(int, int)’:
user.cpp:14:14: warning: statement has no effect [-Wunused-value]
for(x;x<=n;x+=lsb(x)) sum[x]+=val;
^
user.cpp: In function ‘int query(int)’:
user.cpp:20:10: warning: statement has no effect [-Wunused-value]
for(x;x>=1;x-=lsb(x)) rez+=sum[x];
^
user.cpp: In function ‘int main()’:
user.cpp:26: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:27: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:28:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:30:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x),v[x]=i;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 288kb | Incorect | 0 |
2 | 0ms | 292kb | Incorect | 0 |
3 | 0ms | 288kb | Incorect | 0 |
4 | 32ms | 1000kb | Incorect | 0 |
5 | 32ms | 980kb | Incorect | 0 |
6 | 28ms | 920kb | Incorect | 0 |
7 | 36ms | 1012kb | Incorect | 0 |
8 | 32ms | 964kb | Incorect | 0 |
9 | 28ms | 908kb | Incorect | 0 |
10 | 32ms | 1024kb | Incorect | 0 |
Punctaj total | 0 |