Mai intai trebuie sa te autentifici.
Borderou de evaluare (job #2327237)
| Utilizator | Data | 24 ianuarie 2019 15:37:37 | |
|---|---|---|---|
| Problema | Combinari | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 100 | ||
Raport evaluator
Compilare:
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
#import<fstream>
^~~~~~
main.cpp: In function 'int w()':
main.cpp:2:128: warning: no return statement in function returning non-void [-Wreturn-type]
std::ifstream f("combinari.in");std::ofstream g("combinari.out");int N,K,x[19],i;int w(){for(i=1;i<=K;++i)g<<x[i]<<' ';g<<'\n';}int b(int k){if(k==K+1)w();else for(int i=x[k-1]+1;i<=N;++i)x[k]=i,b(k+1);}main(){f>>N>>K;b(1);}
^
main.cpp: In function 'int b(int)':
main.cpp:2:203: warning: no return statement in function returning non-void [-Wreturn-type]
std::ifstream f("combinari.in");std::ofstream g("combinari.out");int N,K,x[19],i;int w(){for(i=1;i<=K;++i)g<<x[i]<<' ';g<<'\n';}int b(int k){if(k==K+1)w();else for(int i=x[k-1]+1;i<=N;++i)x[k]=i,b(k+1);}main(){f>>N>>K;b(1);}
^
main.cpp: At global scope:
main.cpp:2:209: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
std::ifstream f("combinari.in");std::ofstream g("combinari.out");int N,K,x[19],i;int w(){for(i=1;i<=K;++i)g<<x[i]<<' ';g<<'\n';}int b(int k){if(k==K+1)w();else for(int i=x[k-1]+1;i<=N;++i)x[k]=i,b(k+1);}main(){f>>N>>K;b(1);}
^
| Test | Timp executie | Memorie folosita | Mesaj | Punctaj/test |
|---|---|---|---|---|
| 1 | 2ms | 131kb | OK | 10 |
| 2 | 98ms | 1310kb | OK | 10 |
| 3 | 2ms | 131kb | OK | 10 |
| 4 | 52ms | 655kb | OK | 10 |
| 5 | 2ms | 131kb | OK | 10 |
| 6 | 4ms | 131kb | OK | 10 |
| 7 | 2ms | 131kb | OK | 10 |
| 8 | 8ms | 131kb | OK | 10 |
| 9 | 2ms | 131kb | OK | 10 |
| 10 | 2ms | 131kb | OK | 10 |
| Punctaj total | 100 | |||
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
