답안 #257303

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
257303 2020-08-04T05:21:01 Z KoD 무지개나라 (APIO17_rainbow) C++17
컴파일 오류
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
   }
   ^