제출 #1234630

#제출 시각아이디문제언어결과실행 시간메모리
1234630PenguinsAreCutePark (JOI17_park)C++17
컴파일 에러
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); } }

컴파일 시 표준 에러 (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);
      |                                 ^~~~~~