Borderou de evaluare (job #584285)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Oraș (clasa a 8-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 3 mar. 2021 18:57:45 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:28:14: warning: init-statement in selection statements only available with '-std=c++17' or '-std=gnu++17'
28 | if(A[i + 1][j]=='.' || A[i - 1][j]=='.' || A[i][j + 1]=='.' || A[i][j - 1]=='.' ||
| ^
main.cpp:29:50: warning: statement has no effect [-Wunused-value]
28 | if(A[i + 1][j]=='.' || A[i - 1][j]=='.' || A[i][j + 1]=='.' || A[i][j - 1]=='.' ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
29 | A[i + 1][j + 1]=='.' || A[i + 1][j - 1]=='.' || A[i - 1][j + 1]=='.';
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
main.cpp:30:25: error: expected ')' before ';' token
30 | char c=A[i][j];
| ^
| )
main.cpp:28:13: note: to match this '('
28 | if(A[i + 1][j]=='.' || A[i - 1][j]=='.' || A[i][j + 1]=='.' || A[i][j - 1]=='.' ||
| ^
main.cpp:30:16: warning: unused variable 'c' [-Wunused-variable]
30 | char c=A[i][j];
| ^
main.cpp:31:35: error: 'c' was not declared in this scope
31 | int count=FloodFill(i,j,c,'0',0);
| ^