Pagini recente » Cod sursa (job #2649213) | Borderou de evaluare (job #3290277) | Borderou de evaluare (job #2743248) | Borderou de evaluare (job #1720194) | Borderou de evaluare (job #2264216)
Borderou de evaluare (job #2264216)
Raport evaluator
Compilare:
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
#import <iostream>
^~~~~~
main.cpp: In function 'int main()':
main.cpp:2:62: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
using namespace std;int main(){freopen("fetite.in","r",stdin);freopen("fetite.out","w",stdout);unsigned long long N,R,I=2;for(cin>>N;I<=N;I*=2,R=(N-I)*2+1);cout<<R;}
^
main.cpp:2:95: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
using namespace std;int main(){freopen("fetite.in","r",stdin);freopen("fetite.out","w",stdout);unsigned long long N,R,I=2;for(cin>>N;I<=N;I*=2,R=(N-I)*2+1);cout<<R;}
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 3ms | 131kb | Incorect | 0 |
2 | 4ms | 131kb | Incorect | 0 |
3 | 4ms | 131kb | Incorect | 0 |
4 | 3ms | 131kb | Incorect | 0 |
5 | 4ms | 131kb | Incorect | 0 |
6 | 4ms | 131kb | Incorect | 0 |
7 | 4ms | 131kb | Incorect | 0 |
8 | 4ms | 131kb | Incorect | 0 |
9 | 4ms | 131kb | Incorect | 0 |
10 | 3ms | 131kb | Incorect | 0 |
Punctaj total | 0 |