Pagini recente » Borderou de evaluare (job #682730) | Borderou de evaluare (job #562317) | Borderou de evaluare (job #1364418) | Borderou de evaluare (job #24985) | Borderou de evaluare (job #1791518)
Borderou de evaluare (job #1791518)
Raport evaluator
Compilare:
user.cpp:2:83: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
using namespace std;ifstream a("submultimi.in");ofstream b("submultimi.out");main(){int n;a>>n;for(int x=1;x<1<<n;x++){for(int i=0;i<n;i++){if(x&(1<<i)){b<<i+1<<" ";}}b<<"\n";}}
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 408kb | Correct! | 10 |
2 | 0ms | 412kb | Correct! | 10 |
3 | 0ms | 408kb | Correct! | 10 |
4 | 0ms | 416kb | Correct! | 10 |
5 | 0ms | 420kb | Correct! | 10 |
6 | 8ms | 420kb | Correct! | 10 |
7 | 16ms | 416kb | Correct! | 10 |
8 | 32ms | 416kb | Correct! | 10 |
9 | 76ms | 424kb | Correct! | 10 |
10 | 160ms | 420kb | Correct! | 10 |
Punctaj total | 100 |