Borderou de evaluare (job #2950989)

Utilizator lucametehauDart Monkey lucametehau Data 5 decembrie 2022 09:02:12
Problema Subsir crescator maximal Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 15

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
11ms184kbSubsirul nu e strict crescator!55
20ms184kbCorect!1010
31ms184kbLungime incorecta!00
40ms184kbLungime incorecta!00
50ms184kbLungime incorecta!00
60ms184kbLungime incorecta!00
70ms184kbLungime incorecta!00
814ms929kbLungime incorecta!00
912ms1069kbLungime incorecta!0
1013ms962kbLungime incorecta!0
Punctaj total15

Ceva nu functioneaza?