Borderou de evaluare (job #1483259)
Utilizator | Data | 9 septembrie 2015 00:02:28 | |
---|---|---|---|
Problema | Ghiozdan | 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:16:10: error: ‘n’ was not declared in this scope
fin>>n>>g;
^
user.cpp:16:13: error: ‘g’ was not declared in this scope
fin>>n>>g;
^
user.cpp:17:27: error: ‘x’ was not declared in this scope
for(i=1;i<=n;i++)fin>>x[i];
^
user.cpp:18:10: error: ‘x’ was not declared in this scope
sort(x+1,x+n+1,cmp);
^
user.cpp:24:15: error: ‘gmax’ was not declared in this scope
if((a>gmax)&&(a<=g))
^
user.cpp:27:13: error: ‘imax’ was not declared in this scope
imax=i;
^
user.cpp:29:20: error: ‘maxim’ was not declared in this scope
for(j=1;j<=maxim;j++)
^
user.cpp:35:22: error: ‘gmax’ was not declared in this scope
if(j>gmax&&j<=g)
^
user.cpp:38:21: error: ‘imax’ was not declared in this scope
imax=i;
^
user.cpp:40:24: error: ‘gmax’ was not declared in this scope
if(j+a>gmax&&j+a<=g)
^
user.cpp:43:21: error: ‘imax’ was not declared in this scope
imax=i;
^
user.cpp:47:9: error: ‘maxim’ was not declared in this scope
maxim+=a;
^
user.cpp:49:11: error: ‘gmax’ was not declared in this scope
int s=gmax,nr=0;
^
user.cpp:52:9: error: ‘nr’ was not declared in this scope
nr++;
^
user.cpp:53:17: error: ‘imax’ was not declared in this scope
fout<<x[imax]<<"\n";
^
user.cpp:59:22: error: ‘nr’ was not declared in this scope
fout<<gmax<<" "<<nr;
^
user.cpp:15:15: warning: unused variable ‘r’ [-Wunused-variable]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !