Pagini recente » Cod sursa (job #263453) | Monitorul de evaluare | Cod sursa (job #1814532) | Cod sursa (job #1243062) | Borderou de evaluare (job #3349313)
Borderou de evaluare (job #3349313)
Raport evaluator
Compilare:
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
1 | #import<fstream>
| ^~~~~~
main.cpp:2:155: 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[0x100000],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:187: 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[0x100000],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 | 0ms | 303kb | Corect! | 10 | 10 |
| 2 | 2ms | 303kb | Corect! | 10 | 10 |
| 3 | 0ms | 303kb | Corect! | 10 | 10 |
| 4 | 0ms | 303kb | Corect! | 10 | 10 |
| 5 | 0ms | 303kb | Corect! | 10 | 10 |
| 6 | 0ms | 303kb | Corect! | 10 | 10 |
| 7 | 0ms | 303kb | Corect! | 10 | 10 |
| 8 | 18ms | 1019kb | Corect! | 10 | 30 |
| 9 | 6ms | 1081kb | Corect! | 10 |
| 10 | 17ms | 1003kb | Corect! | 10 |
| Punctaj total | 100 |