Borderou de evaluare (job #2074983)

Utilizator jitaruandreiJitaru Andrei Catalin jitaruandrei Data 25 noiembrie 2017 10:30:25
Problema Maxk Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:8:21: error: size of array ‘v’ is too large int v[1000000001],i,n,k,nrmin,ap[1000000001],poz[1000000001],poz1=-1,poz2=-1,nr=0; ^ user.cpp:8:48: error: size of array ‘ap’ is too large int v[1000000001],i,n,k,nrmin,ap[1000000001],poz[1000000001],poz1=-1,poz2=-1,nr=0; ^ user.cpp:8:64: error: size of array ‘poz’ is too large int v[1000000001],i,n,k,nrmin,ap[1000000001],poz[1000000001],poz1=-1,poz2=-1,nr=0; ^ user.cpp:11:13: error: ‘v’ was not declared in this scope {f>>v[i];ap[i]=0;poz[i]=0;} ^ user.cpp:11:18: error: ‘ap’ was not declared in this scope {f>>v[i];ap[i]=0;poz[i]=0;} ^ user.cpp:11:26: error: ‘poz’ was not declared in this scope {f>>v[i];ap[i]=0;poz[i]=0;} ^ user.cpp:15:12: error: ‘v’ was not declared in this scope if(v[i-1]==v[i])ap[v[i]]++; ^ user.cpp:15:25: error: ‘ap’ was not declared in this scope if(v[i-1]==v[i])ap[v[i]]++; ^ user.cpp:16:12: error: ‘ap’ was not declared in this scope if(ap[v[i]]>k)poz[i]=1; ^ user.cpp:16:15: error: ‘v’ was not declared in this scope if(ap[v[i]]>k)poz[i]=1; ^ user.cpp:16:23: error: ‘poz’ was not declared in this scope if(ap[v[i]]>k)poz[i]=1; ^ user.cpp:20:24: error: ‘poz’ was not declared in this scope if(poz1==-1)if(poz[i]==1)poz1=i; ^ user.cpp:24:24: error: ‘poz’ was not declared in this scope if(poz2==-1)if(poz[i]==1)if(i!=poz1)poz2=i; ^ user.cpp:8:29: warning: unused variable ‘nrmin’ [-Wunused-variable] int v[1000000001],i,n,k,nrmin,ap[1000000001],poz[1000000001],poz1=-1,poz2=-1,nr=0; ^

Ceva nu functioneaza?