Borderou de evaluare (job #1257796)
Utilizator | Data | 8 noiembrie 2014 11:04:29 | |
---|---|---|---|
Problema | Vila | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:13:1: error: expected initializer before ‘int’
int n,m;
^
user.cpp: In function ‘bool ok(int, int)’:
user.cpp:19:29: error: ‘n’ was not declared in this scope
return(v[i][j]==0 && i<=n && j<=m && i>0 && j>0);
^
user.cpp:19:37: error: ‘m’ was not declared in this scope
return(v[i][j]==0 && i<=n && j<=m && i>0 && j>0);
^
user.cpp: In function ‘int main()’:
user.cpp:49:8: error: ‘n’ was not declared in this scope
f>>n>>m;
^
user.cpp:49:11: error: ‘m’ was not declared in this scope
f>>n>>m;
^
user.cpp: In function ‘bool ok(int, int)’:
user.cpp:20:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !