Pagini recente » Borderou de evaluare (job #2217669) | Borderou de evaluare (job #2082576) | Borderou de evaluare (job #2737574) | Borderou de evaluare (job #1991237) | Borderou de evaluare (job #2950989)
Borderou de evaluare (job #2950989)
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(){f>>x;for(;f>>x;r+=n>r,k[a[++i]=n]=v[i]=x,n=0)while(k[n]<x&++n<=r);g<<r<<" ",p(i);}
| ^~~~
main.cpp: In function 'int main()':
main.cpp:2:185: 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(){f>>x;for(;f>>x;r+=n>r,k[a[++i]=n]=v[i]=x,n=0)while(k[n]<x&++n<=r);g<<r<<" ",p(i);}
| ^~~
main.cpp:2:214: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
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(){f>>x;for(;f>>x;r+=n>r,k[a[++i]=n]=v[i]=x,n=0)while(k[n]<x&++n<=r);g<<r<<" ",p(i);}
| ~~~~^~
main.cpp:2:217: warning: operation on 'n' 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(){f>>x;for(;f>>x;r+=n>r,k[a[++i]=n]=v[i]=x,n=0)while(k[n]<x&++n<=r);g<<r<<" ",p(i);}
| ^~~
main.cpp:2:217: warning: operation on 'n' may be undefined [-Wsequence-point]
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 1ms | 184kb | Subsirul nu e strict crescator! | 5 | 5 |
2 | 0ms | 184kb | Corect! | 10 | 10 |
3 | 1ms | 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 | 14ms | 929kb | Lungime incorecta! | 0 | 0 |
9 | 12ms | 1069kb | Lungime incorecta! | 0 |
10 | 13ms | 962kb | Lungime incorecta! | 0 |
Punctaj total | 15 |