제출 #423756

#제출 시각아이디문제언어결과실행 시간메모리
423756aymanrsVision Program (IOI19_vision)C++14
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; void construct_network(int H, int W, int K){ vector<int> O; for(int i = 0;i < H;i++){ for(int j = 0;j < W;j++){ vector<int> o; for(int x = -K; x <= K;x++){ if(j + x < 0 || j + x >= W) continue; if(i - K + abs(x) > 0) o.push_back((i - K + abs(x)) * W + j + x); if(i + K - abs(x) < H) o.push_back((i + K - abs(x)) * W + j + x); } O.push_back(add_and({add_or(o), i * W + j})); } } add_or(O); }

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

vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:13:34: error: 'add_or' was not declared in this scope
   13 |             O.push_back(add_and({add_or(o), i * W + j}));
      |                                  ^~~~~~
vision.cpp:13:25: error: 'add_and' was not declared in this scope
   13 |             O.push_back(add_and({add_or(o), i * W + j}));
      |                         ^~~~~~~
vision.cpp:16:5: error: 'add_or' was not declared in this scope
   16 |     add_or(O);
      |     ^~~~~~