Borderou de evaluare (job #1597190)
Utilizator | Data | 11 februarie 2016 19:33:00 | |
---|---|---|---|
Problema | Pluricex | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:1: error: expected ‘,’ or ‘;’ before ‘int’
int n,i,j,m,k,D,v[23][11],x[9],u[11],nr;
^
user.cpp: In function ‘void afis()’:
user.cpp:12:16: error: ‘m’ was not declared in this scope
for(i=1;i<=m;i++) g<<x[i]<<' ';
^
user.cpp:12:26: error: ‘x’ was not declared in this scope
for(i=1;i<=m;i++) g<<x[i]<<' ';
^
user.cpp: In function ‘void back(int)’:
user.cpp:19:11: error: ‘x’ was not declared in this scope
for(i=x[k-1]+1;i<=n;i++)
^
user.cpp:19:23: error: ‘n’ was not declared in this scope
for(i=x[k-1]+1;i<=n;i++)
^
user.cpp:21:20: error: ‘v’ was not declared in this scope
for(j=1;j<=v[i][0];j++)
^
user.cpp:23:16: error: ‘u’ was not declared in this scope
if(u[v[i][j]]==0) nr++;
^
user.cpp:23:31: error: ‘nr’ was not declared in this scope
if(u[v[i][j]]==0) nr++;
^
user.cpp:24:13: error: ‘u’ was not declared in this scope
u[v[i][j]]++;
^
user.cpp:27:15: error: ‘m’ was not declared in this scope
if(k==m)
^
user.cpp:29:16: error: ‘nr’ was not declared in this scope
if(nr==D) afis();
^
user.cpp:29:20: error: ‘D’ was not declared in this scope
if(nr==D) afis();
^
user.cpp:32:20: error: ‘v’ was not declared in this scope
for(j=1;j<=v[i][0];j++)
^
user.cpp:34:13: error: ‘u’ was not declared in this scope
u[v[i][j]]--;
^
user.cpp:35:31: error: ‘nr’ was not declared in this scope
if(u[v[i][j]]==0) nr--;
^
user.cpp: In function ‘int main()’:
user.cpp:42:8: error: ‘n’ was not declared in this scope
f>>n>>m>>D;
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !