Submission #365007

#TimeUsernameProblemLanguageResultExecution timeMemory
365007FalseeeZoo (COCI19_zoo)C++17
Compilation error
0 ms0 KiB
{ if(g[i][j] == 'T'){ g[i][j]='B'; }else if(g[i][j]=='B'){ g[i][j]='T'; } } } } int res = 0; F0R(i, n){ F0R(j, m){ if(g[i][j]=='T'){ res=1; break; } } if(res){ break; } } F0R(i, n){ F0R(j, m){ if(g[i][j] =='B' && !vis[i][j]){ flood(i, j);

Compilation message (stderr)

zoo.cpp:1:1: error: expected unqualified-id before '{' token
    1 | {
      | ^
zoo.cpp:8:9: error: expected declaration before '}' token
    8 |         }
      |         ^
zoo.cpp:9:5: error: expected declaration before '}' token
    9 |     }
      |     ^
zoo.cpp:11:8: error: expected constructor, destructor, or type conversion before '(' token
   11 |     F0R(i, n){
      |        ^
zoo.cpp:22:8: error: expected constructor, destructor, or type conversion before '(' token
   22 |     F0R(i, n){
      |        ^