Submission #257303

# Submission time Handle Problem Language Result Execution time Memory
257303 2020-08-04T05:21:01 Z KoD Land of the Rainbow Gold (APIO17_rainbow) C++17
Compilation error
0 ms 0 KB
    i32 tmp = sum[ar][bc - 1] - sum[ar][ac];
    tmp += (!river[ar][ac]) + (!river[ar][bc - 1]);
    tmp /= 2;
    return tmp;
  }

Compilation message

rainbow.cpp:1:5: error: 'i32' does not name a type
     i32 tmp = sum[ar][bc - 1] - sum[ar][ac];
     ^~~
rainbow.cpp:2:5: error: 'tmp' does not name a type
     tmp += (!river[ar][ac]) + (!river[ar][bc - 1]);
     ^~~
rainbow.cpp:3:5: error: 'tmp' does not name a type
     tmp /= 2;
     ^~~
rainbow.cpp:4:5: error: expected unqualified-id before 'return'
     return tmp;
     ^~~~~~
rainbow.cpp:5:3: error: expected declaration before '}' token
   }
   ^