Borderou de evaluare (job #2335377)
Utilizator | Data | 3 februarie 2019 23:13:01 | |
---|---|---|---|
Problema | Subsir crescator maximal | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:2:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
#import<fstream>
^~~~~~
main.cpp:6:14: error: array bound is not an integer constant before ']' token
int n,i,j,a[N],b[N],poz[N],Z[N],S,D,k,M;
^
main.cpp:6:19: error: array bound is not an integer constant before ']' token
int n,i,j,a[N],b[N],poz[N],Z[N],S,D,k,M;
^
main.cpp:6:26: error: array bound is not an integer constant before ']' token
int n,i,j,a[N],b[N],poz[N],Z[N],S,D,k,M;
^
main.cpp:6:31: error: array bound is not an integer constant before ']' token
int n,i,j,a[N],b[N],poz[N],Z[N],S,D,k,M;
^
main.cpp: In function 'int main()':
main.cpp:9:4: error: 'a' was not declared in this scope
f>>a[i],S=1,D=k;
^
main.cpp:10:16: error: 'b' was not declared in this scope
while(S<=D){if(b[M=(S+D)/2]<a[i])S=M+1;else D=M-1;}
^
main.cpp:12:1: error: 'b' was not declared in this scope
b[S]=a[i],poz[i++]=S;}
^
main.cpp:12:11: error: 'poz' was not declared in this scope
b[S]=a[i],poz[i++]=S;}
^~~
main.cpp:13:24: error: 'poz' was not declared in this scope
for(i=n;i>=1&&k;i--)if(poz[i]==k)Z[++j]=a[i],k--;
^~~
main.cpp:13:34: error: 'Z' was not declared in this scope
for(i=n;i>=1&&k;i--)if(poz[i]==k)Z[++j]=a[i],k--;
^
main.cpp:13:41: error: 'a' was not declared in this scope
for(i=n;i>=1&&k;i--)if(poz[i]==k)Z[++j]=a[i],k--;
^
main.cpp:14:21: error: 'Z' was not declared in this scope
for(g<<j<<'\n';j;g<<Z[j--]<<" ");}
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !