Borderou de evaluare (job #985902)
Utilizator | Data | 17 august 2013 14:30:35 | |
---|---|---|---|
Problema | Album | Status | done |
Runda | Concursul Mihai Patrascu 2013 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:8:2: error: expected ‘,’ or ‘;’ before ‘int’
int n, k, i, j, v[20][20], nr_sol=0;
^
user.cpp:9:5: error: ‘n’ was not declared in this scope
f>>n>>k;
^
user.cpp:9:8: error: ‘k’ was not declared in this scope
f>>n>>k;
^
user.cpp:10:6: error: ‘i’ was not declared in this scope
for(i=1;i<=n;i++)
^
user.cpp:11:7: error: ‘j’ was not declared in this scope
for(j=1;j<=k;j++)
^
user.cpp:12:7: error: ‘v’ was not declared in this scope
f>>v[i][j];
^
user.cpp:13:7: error: ‘i’ was not declared in this scope
for(i=1;i<=n;i++)
^
user.cpp:15:8: error: ‘j’ was not declared in this scope
for(j=1;j<=k;j++)
^
user.cpp:16:11: error: ‘v’ was not declared in this scope
cout<<v[i][j]<<" ";
^
user.cpp:19:7: error: ‘i’ was not declared in this scope
for(i=1;i<=n;i++)
^
user.cpp:20:8: error: ‘j’ was not declared in this scope
for(j=1;j<=k;j++)
^
user.cpp:21:8: error: ‘v’ was not declared in this scope
if(v[i][j]<v[i+1][j])nr_sol++;
^
user.cpp:21:26: error: ‘nr_sol’ was not declared in this scope
if(v[i][j]<v[i+1][j])nr_sol++;
^
user.cpp:22:13: error: ‘nr_sol’ was not declared in this scope
g<<endl<<nr_sol;//;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !