Borderou de evaluare (job #2950898)

Utilizator Stefan_PiscuPiscu Stefan Constantin Stefan_Piscu Data 4 decembrie 2022 20:08: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: In function 'int a(int)': main.cpp:2:149: warning: no return statement in function returning non-void [-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;int a(int Z){while(p[--Z]!=Q);if(--Q)a(Z);g<<v[Z]<<" ";} | ^ main.cpp: At global scope: main.cpp:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 3 | main(){f>>j;for(;f>>v[i];q[j]=v[i++]){for(j=0;v[i]>q[j]&j<=Q;p[i]=++j);Q+=j>Q;}g<<Q<<" ";a(i);} | ^~~~ main.cpp: In function 'int main()': main.cpp:3:51: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses] 3 | main(){f>>j;for(;f>>v[i];q[j]=v[i++]){for(j=0;v[i]>q[j]&j<=Q;p[i]=++j);Q+=j>Q;}g<<Q<<" ";a(i);} | ~~~~^~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms184kbKilled by Signal 1100
20ms184kbKilled by Signal 1100
30ms184kbKilled by Signal 1100
40ms184kbKilled by Signal 1100
50ms184kbKilled by Signal 1100
60ms184kbKilled by Signal 1100
70ms184kbKilled by Signal 1100
840ms905kbKilled by Signal 1100
915ms1069kbKilled by Signal 110
1039ms1028kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?