제출 #807120

#제출 시각아이디문제언어결과실행 시간메모리
807120BenmathVision Program (IOI19_vision)C++14
컴파일 에러
0 ms0 KiB
#include "vision.h" #include<bits/stdc++.h> using namespace std; void construct_network(int H, int W, int K) { std::vector<int> Ns; int a; i=0; j=0; for(int k=0;k<K;k++){ int ro1=i+k; int ro2=j+K-1-k; if(ro1<H and ro2<W){ Ns= {0,ro1*W+ro2}; a=add_and(Ns); } } Ns.clear(); for(int i=H*W;i<=a;i++){ Ns.push_back(i); } a = add_or(Ns); }

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

vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:7:2: error: 'i' was not declared in this scope
    7 |  i=0;
      |  ^
vision.cpp:8:2: error: 'j' was not declared in this scope
    8 |  j=0;
      |  ^