Pagini recente » Borderou de evaluare (job #2306388) | Borderou de evaluare (job #5757) | Borderou de evaluare (job #2951576) | Borderou de evaluare (job #1966117) | Borderou de evaluare (job #2950911)
Borderou de evaluare (job #2950911)
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;for(;f>>v[i];q[j]=v[i++]){for(j=0;v[i]>v[j]&j<=Q;p[i]=++j);Q+=j>Q;}g<<Q<<" ";a(i);}
| ^~~~
main.cpp: In function 'int main()':
main.cpp:2:201: 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;for(;f>>v[i];q[j]=v[i++]){for(j=0;v[i]>v[j]&j<=Q;p[i]=++j);Q+=j>Q;}g<<Q<<" ";a(i);}
| ~~~~^~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 184kb | Lungime incorecta! | 0 | 0 |
2 | 0ms | 184kb | Lungime incorecta! | 0 | 0 |
3 | 0ms | 184kb | Lungime incorecta! | 0 | 0 |
4 | 0ms | 184kb | Lungime incorecta! | 0 | 0 |
5 | 0ms | 184kb | Lungime incorecta! | 0 | 0 |
6 | 0ms | 184kb | Lungime incorecta! | 0 | 0 |
7 | 0ms | 184kb | Lungime incorecta! | 0 | 0 |
8 | 15ms | 970kb | Lungime incorecta! | 0 | 0 |
9 | 9ms | 516kb | Killed by Signal 11 | 0 |
10 | 14ms | 1003kb | Lungime incorecta! | 0 |
Punctaj total | 0 |