답안 #667874

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
667874 2022-12-02T07:36:57 Z coding_snorlax Vision Program (IOI19_vision) C++14
컴파일 오류
0 ms 0 KB
#include<bits/stdc++.h>
#include "vision.h"
using namespace std;
int List1[200006]={0};
int row,column;
void construct_network(int H,int W,int K){
    row=H;
    column=W;
    vector<int> s;
    for(int i=0;i<1;i++){
        for(int j=0;j<1;j++){
            s.clear();
            for(int k=0;k<H;k++){
                for(int l=0;l<W;l++){
                    if(dis(i,j,k,l)==K) s.push_back(num(k,l));
                }
            }
            if((int)s.size()==0){
                s.push_back(0);
                s.push_back(1);
                s.push_back(2);
                add_and(s);
            }
            else{
                add_xor(s);
            }
        }
    }
    vector<int> s1={0,H*W};
    for(int i=0;i<H*W;i++){
        add_and(s1);
        s1[0]++;
        s1[1]++;
    }
    vector<int> s2;
    for(int i=0;i<H*W;i++){
        s2.push_back(i+2*H*W);
    }
    add_or(s2);
    return;
}

Compilation message

vision.cpp: In function 'void construct_network(int, int, int)':
vision.cpp:15:24: error: 'dis' was not declared in this scope; did you mean 'div'?
   15 |                     if(dis(i,j,k,l)==K) s.push_back(num(k,l));
      |                        ^~~
      |                        div
vision.cpp:15:53: error: 'num' was not declared in this scope; did you mean 'enum'?
   15 |                     if(dis(i,j,k,l)==K) s.push_back(num(k,l));
      |                                                     ^~~
      |                                                     enum