Borderou de evaluare (job #1738036)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:21:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("inundatie.in","r",stdin);
^
user.cpp:22:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("inundatie.out","w",stdout);
^
user.cpp:24:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&l,&c);
^
user.cpp:28:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&v[n]);
^
user.cpp:33:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&q);
^
user.cpp:35:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&value);
^
user.cpp: In function ‘int BinarySearch(int)’:
user.cpp:18:12: warning: ‘answer’ may be used uninitialized in this function [-Wmaybe-uninitialized]
return answer;
^
user.cpp: In function ‘int main()’:
user.cpp:41:60: warning: ‘answer’ may be used uninitialized in this function [-Wmaybe-uninitialized]
printf("%lld\n",(long long)sum[index]+(long long)(n-index)*(value-1));
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 272kb | OK | 10 |
2 | 0ms | 296kb | OK | 10 |
3 | 12ms | 392kb | OK | 10 |
4 | 24ms | 528kb | OK | 10 |
5 | 36ms | 632kb | OK | 10 |
6 | 56ms | 740kb | OK | 10 |
7 | 72ms | 1004kb | OK | 10 |
8 | 96ms | 1160kb | OK | 10 |
9 | 136ms | 1332kb | OK | 10 |
10 | 0ms | 268kb | OK | 10 |
Punctaj total | 100 |