Submission #320993

#TimeUsernameProblemLanguageResultExecution timeMemory
320993monus1042Treasure (different grader from official contest) (CEOI13_treasure2)C++17
Compilation error
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); } } } }

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