제출 #742278

#제출 시각아이디문제언어결과실행 시간메모리
742278t6twotwoVision Program (IOI19_vision)C++17
컴파일 에러
0 ms0 KiB
#include "vision.h" #include <bits/stdc++.h> using namespace std; void construct_network(int H, int W, int K) { if (min(H, W) == 1) { if (H != 1) { swap(H, W); } vector<int> v; for (int i = 0; i + K < W; i++) { add_and({i, i + K}); v.push_back(i + W); } add_or(v); return; } vector<int> v; for (int i = 0; i <= K; i++) { if (i < H && K - i < W) { add_add({0, i * W + K - i}); v.push_back(H * W + v.size()); } } add_or(v); }

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

vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:20:4: error: 'add_add' was not declared in this scope; did you mean 'add_and'?
   20 |    add_add({0, i * W + K - i});
      |    ^~~~~~~
      |    add_and