제출 #370347

#제출 시각아이디문제언어결과실행 시간메모리
370347MilosMilutinovicVision Program (IOI19_vision)C++14
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #include "vision.h" using namespace std; #define pb push_back const int N=205; int h,w,k,a[N][N]; int Get(int i,int j){return a[i][j];} void SolveBF(){ int tmp=0; for(int i=0;i<h;i++)for(int j=0;j<w;j++)a[i][j]=tmp++; vector<int> ask; int cnt=h*w; for(int i=0;i<h;i++){ for(int j=0;j<w;j++){ for(int x=0;x<h;x++){ for(int y=0;y<w;y++){ int dist=abs(x-i)+abs(y-j); if(dist!=k)continue; add_and({Get(i,j),Get(x,y)}); ask.pb(cnt); cnt++; } } } } if((int)ask.size()==0){ ask_not(1); return; } add_or(ask); } void construct_network(int H,int W,int K){ h=H,w=W,k=K; if(max(H,W)<=30){ SolveBF(); return; } }

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

vision.cpp: In function 'void SolveBF()':
vision.cpp:27:3: error: 'ask_not' was not declared in this scope; did you mean 'add_not'?
   27 |   ask_not(1);
      |   ^~~~~~~
      |   add_not