답안 #320993

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
320993 2020-11-10T14:59:46 Z monus1042 보물 찾기 (CEOI13_treasure2) C++17
컴파일 오류
0 ms 0 KB
#include "treasure.h"
#include <bits/stdc++.h>
using namespace std;

void findTreasure (int N) {
    //int cnt = countTreasure(1, 1, N, N);
    //if(cnt > 0) Report (1, 1);
	for (int i=1; i<=N; i++){
		for (int j=1; j<=N; j++){
			int counter = countTreasure(i,j);
			if (counter == 1){
				Report(i,j);
			}
		}
	}
}

Compilation message

treasure.cpp: In function 'void findTreasure(int)':
treasure.cpp:10:35: error: too few arguments to function 'int countTreasure(int, int, int, int)'
   10 |    int counter = countTreasure(i,j);
      |                                   ^
In file included from treasure.cpp:1:
treasure.h:1:5: note: declared here
    1 | int countTreasure (int r1, int c1, int r2, int c2);
      |     ^~~~~~~~~~~~~