제출 #320993

#제출 시각아이디문제언어결과실행 시간메모리
320993monus1042보물 찾기 (CEOI13_treasure2)C++17
컴파일 에러
0 ms0 KiB
#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); } } } }

컴파일 시 표준 에러 (stderr) 메시지

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);
      |     ^~~~~~~~~~~~~