Submission #1234630

#TimeUsernameProblemLanguageResultExecution timeMemory
1234630PenguinsAreCutePark (JOI17_park)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;
void Detect(int T, int N) {
	int Place[N];
	for(int i=0;i<N;i++)
		for(int j=i+1;j<N;j++) {
			memset(Place,0,sizeof(Place));
			Place[i] = Place[j] = 1;
			if(Ask(i, j, Place))
				Answer(i, j);
		}
}

Compilation message (stderr)

park.cpp: In function 'void Detect(int, int)':
park.cpp:9:28: error: 'Ask' was not declared in this scope
    9 |                         if(Ask(i, j, Place))
      |                            ^~~
park.cpp:10:33: error: 'Answer' was not declared in this scope
   10 |                                 Answer(i, j);
      |                                 ^~~~~~