Borderou de evaluare (job #976618)
Utilizator | Nita Adrian Valentin ScoobyDoo38 | Data | 23 iulie 2013 15:08:46 |
---|---|---|---|
Problema | Insule | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int bridge()’:
user.cpp:48:2: error: expected ‘,’ or ‘;’ before ‘int’
int key = 100;
^
user.cpp:57:30: error: ‘key’ was not declared in this scope
ocean[ i - 1 ][ j ] = key + 1;
^
user.cpp:59:15: error: ‘key’ was not declared in this scope
return key;
^
user.cpp:55:9: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if ( i > 0 )
^
user.cpp:62:30: error: ‘key’ was not declared in this scope
ocean[ i ][ j - 1 ] = key + 1;
^
user.cpp:64:15: error: ‘key’ was not declared in this scope
return key;
^
user.cpp:60:9: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if ( j > 0 )
^
user.cpp:67:30: error: ‘key’ was not declared in this scope
ocean[ i + 1 ][ j ] = key + 1;
^
user.cpp:69:15: error: ‘key’ was not declared in this scope
return key;
^
user.cpp:65:9: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if ( i < n - 1 )
^
user.cpp:72:30: error: ‘key’ was not declared in this scope
ocean[ i ][ j + 1 ] = key + 1;
^
user.cpp:74:15: error: ‘key’ was not declared in this scope
return key;
^
user.cpp:70:9: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if ( j < m - 1 )
^
user.cpp:77:10: error: ‘key’ was not declared in this scope
key0 = key;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !