Pagini recente » Borderou de evaluare (job #427408) | Borderou de evaluare (job #3150323) | Borderou de evaluare (job #1350706) | Borderou de evaluare (job #690453) | Borderou de evaluare (job #2950991)
Borderou de evaluare (job #2950991)
Raport evaluator
Compilare:
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
1 | #import<fstream>
| ^~~~~~
main.cpp:2:152: 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[2505],a[1<<17];void p(int i){while(a[i--]-r);if(--r)p(i);g<<v[i]<<" ";}main(){for(f>>x;f>>x;r+=n>r,k[a[++i]=n]=v[i]=x,n=0)while(r-n++&&k[n]<x);g<<r<<" ",p(i);}
| ^~~~
main.cpp: In function 'int main()':
main.cpp:2:184: 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[2505],a[1<<17];void p(int i){while(a[i--]-r);if(--r)p(i);g<<v[i]<<" ";}main(){for(f>>x;f>>x;r+=n>r,k[a[++i]=n]=v[i]=x,n=0)while(r-n++&&k[n]<x);g<<r<<" ",p(i);}
| ^~~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
| 1 | 1ms | 188kb | 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 | 28ms | 921kb | Corect! | 10 | 30 |
| 9 | 15ms | 987kb | Corect! | 10 |
| 10 | 28ms | 937kb | Corect! | 10 |
| Punctaj total | 100 |