Pagini recente » Borderou de evaluare (job #735198) | Borderou de evaluare (job #3114086) | Borderou de evaluare (job #1758243) | Borderou de evaluare (job #2166084) | Borderou de evaluare (job #2950987)
Borderou de evaluare (job #2950987)
Raport evaluator
Compilare:
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
1 | #import<fstream>
| ^~~~~~
main.cpp:2:153: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | std::ifstream f("scmax.in");std::ofstream g("scmax.out");int n,r,i,x,v[1<<17],k[1<<17],a[1<<17];void p(int i){while(a[i--]-r);if(--r)p(i);g<<v[i]<<" ";}main(){f>>n;while(f>>x){n=0;while(r-n++&&k[n]<x);r+=n>r;k[a[++i]=n]=v[i]=x;}g<<r<<" ",p(i);}
| ^~~~
main.cpp: In function 'int main()':
main.cpp:2:213: warning: operation on 'i' may be undefined [-Wsequence-point]
2 | std::ifstream f("scmax.in");std::ofstream g("scmax.out");int n,r,i,x,v[1<<17],k[1<<17],a[1<<17];void p(int i){while(a[i--]-r);if(--r)p(i);g<<v[i]<<" ";}main(){f>>n;while(f>>x){n=0;while(r-n++&&k[n]<x);r+=n>r;k[a[++i]=n]=v[i]=x;}g<<r<<" ",p(i);}
| ^~~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
| 1 | 0ms | 184kb | Corect! | 10 | 10 |
| 2 | 0ms | 184kb | Corect! | 10 | 10 |
| 3 | 0ms | 184kb | Corect! | 10 | 10 |
| 4 | 0ms | 184kb | Corect! | 10 | 10 |
| 5 | 0ms | 184kb | Corect! | 10 | 10 |
| 6 | 0ms | 184kb | Corect! | 10 | 10 |
| 7 | 0ms | 184kb | Corect! | 10 | 10 |
| 8 | 29ms | 991kb | Corect! | 10 | 30 |
| 9 | 15ms | 991kb | Corect! | 10 |
| 10 | 30ms | 958kb | Corect! | 10 |
| Punctaj total | 100 |