답안 #362684

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
362684 2021-02-04T05:53:56 Z nighthallo 보물 찾기 (CEOI13_treasure2) C++14
컴파일 오류
0 ms 0 KB
#include "treasure.h"

void findTreasure (int N) {
    int arr[101][101];

    for(int i = 1 ; i <= N ; i++){
        for(int j = 1 ; j <= N ; j++){
            arr[101][101] = countTreasure(i, j, i, j);
        }
    }
    for(int i = 1 ; i <= N ; i++){
        for(int j = 1 ; j <= N ; j++){
            if(arr[101][101]){
                report(i, j);
            }
        }
    }
}

Compilation message

treasure.cpp: In function 'void findTreasure(int)':
treasure.cpp:14:17: error: 'report' was not declared in this scope; did you mean 'Report'?
   14 |                 report(i, j);
      |                 ^~~~~~
      |                 Report