Borderou de evaluare (job #841545)
Utilizator | Data | 24 decembrie 2012 13:32:56 | |
---|---|---|---|
Problema | Pirati | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:21:22: error: size of array 'harta' is too large
char harta[maxn][maxn] ;
^
main.cpp:24:20: error: size of array 'unde' is too large
int unde[maxn][maxn] ;
^
main.cpp:32:22: error: size of array 'selid' is too large
bool selid[maxn][maxn] ;
^
main.cpp:33:23: error: size of array 'seldif' is too large
bool seldif[maxn][maxn] ;
^
main.cpp: In function 'int main()':
main.cpp:59:26: error: 'harta' was not declared in this scope
scanf("%c", &harta[i][j]);
^~~~~
main.cpp:60:24: error: 'harta' was not declared in this scope
scanf("%c\n", &harta[i][m]);
^~~~~
main.cpp:69:9: error: 'harta' was not declared in this scope
if( harta[1][1] == '1' )
^~~~~
main.cpp:74:16: error: 'selid' was not declared in this scope
while( selid[ coadadif[i].x ][ coadadif[i].y ]== true )
^~~~~
main.cpp:80:9: error: 'unde' was not declared in this scope
unde[ coadadif[i].x ][ coadadif[i].y ] = i - nr ;
^~~~
main.cpp:86:9: error: 'seldif' was not declared in this scope
seldif[ coadaid[lenid].x ][ coadaid[lenid].y ] = true ;
^~~~~~
main.cpp:91:13: error: 'harta' was not declared in this scope
if( harta[ coadadif[i].x ][ coadadif[i].y ] == '1' )
^~~~~
main.cpp:106:25: error: 'harta' was not declared in this scope
if( harta[ax][ay] == harta[nx][ny] && selid[nx][ny] == false )
^~~~~
main.cpp:106:59: error: 'selid' was not declared in this scope
if( harta[ax][ay] == harta[nx][ny] && selid[nx][ny] == false )
^~~~~
main.cpp:115:25: error: 'harta' was not declared in this scope
if( harta[ax][ay] != harta[nx][ny] && seldif[nx][ny] == false )
^~~~~
main.cpp:137:17: error: 'unde' was not declared in this scope
int x = unde[xs][ys] ;
^~~~
main.cpp:51:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("pirati.in", "r", stdin);
^
main.cpp:52:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !