Borderou de evaluare (job #2950911)

Utilizator Stefan_PiscuPiscu Stefan Constantin Stefan_Piscu Data 4 decembrie 2022 20:23:24
Problema Subsir crescator maximal Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

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
10ms184kbLungime incorecta!00
20ms184kbLungime incorecta!00
30ms184kbLungime incorecta!00
40ms184kbLungime incorecta!00
50ms184kbLungime incorecta!00
60ms184kbLungime incorecta!00
70ms184kbLungime incorecta!00
815ms970kbLungime incorecta!00
99ms516kbKilled by Signal 110
1014ms1003kbLungime incorecta!0
Punctaj total0

Ceva nu functioneaza?