Pagini recente » Borderou de evaluare (job #2684211) | Borderou de evaluare (job #3228442) | Borderou de evaluare (job #2240825) | Borderou de evaluare (job #1849963) | Borderou de evaluare (job #2185496)
Borderou de evaluare (job #2185496)
Raport evaluator
Compilare:
user.cpp:2:6: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
main(){long long N,P=1;freopen("fetite.in","r",stdin);freopen("fetite.out","w",stdout);scanf("%lld",&N);while(P-1<N)P*=2;printf("%lld",((N-(P/2)+1)*2)-1);}
^
user.cpp: In function ‘int main()’:
user.cpp:2:54: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
main(){long long N,P=1;freopen("fetite.in","r",stdin);freopen("fetite.out","w",stdout);scanf("%lld",&N);while(P-1<N)P*=2;printf("%lld",((N-(P/2)+1)*2)-1);}
^
user.cpp:2:87: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
main(){long long N,P=1;freopen("fetite.in","r",stdin);freopen("fetite.out","w",stdout);scanf("%lld",&N);while(P-1<N)P*=2;printf("%lld",((N-(P/2)+1)*2)-1);}
^
user.cpp:2:104: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
main(){long long N,P=1;freopen("fetite.in","r",stdin);freopen("fetite.out","w",stdout);scanf("%lld",&N);while(P-1<N)P*=2;printf("%lld",((N-(P/2)+1)*2)-1);}
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 812kb | OK | 10 |
2 | 0ms | 752kb | OK | 10 |
3 | 0ms | 752kb | OK | 10 |
4 | 0ms | 876kb | OK | 10 |
5 | 0ms | 864kb | OK | 10 |
6 | 0ms | 800kb | OK | 10 |
7 | 0ms | 880kb | OK | 10 |
8 | 0ms | 860kb | OK | 10 |
9 | 0ms | 868kb | OK | 10 |
10 | 0ms | 860kb | OK | 10 |
Punctaj total | 100 |