Pagini recente » Monitorul de evaluare | Borderou de evaluare (job #1336057) | Borderou de evaluare (job #410139) | Borderou de evaluare (job #2268152) | Borderou de evaluare (job #2950872)
Borderou de evaluare (job #2950872)
Raport evaluator
Compilare:
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
1 | #import<fstream>
| ^~~~~~
main.cpp:2:151: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | std::ifstream f("scmax.in");std::ofstream g("scmax.out");int v[1<<20],p[1<<20],q[9999],i,j,Q;void a(int Z){while(p[--Z]!=Q);if(--Q)a(Z);g<<v[Z]<<" ";}main(){f>>j;while(f>>v[i]){for(j=0;v[i]>q[j]&j<=Q;)p[i]=++j;Q=Q>j?Q:j;q[j]=v[i++];}g<<Q<<" ";a(i);}
| ^~~~
main.cpp: In function 'int main()':
main.cpp:2:190: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
2 | std::ifstream f("scmax.in");std::ofstream g("scmax.out");int v[1<<20],p[1<<20],q[9999],i,j,Q;void a(int Z){while(p[--Z]!=Q);if(--Q)a(Z);g<<v[Z]<<" ";}main(){f>>j;while(f>>v[i]){for(j=0;v[i]>q[j]&j<=Q;)p[i]=++j;Q=Q>j?Q:j;q[j]=v[i++];}g<<Q<<" ";a(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 | 37ms | 987kb | Corect! | 10 | 30 |
| 9 | 15ms | 978kb | Corect! | 10 |
| 10 | 39ms | 1028kb | Corect! | 10 |
| Punctaj total | 100 |