답안 #565873

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
565873 2022-05-21T13:26:59 Z Deepesson CEOI16_icc (CEOI16_icc) C++17
컴파일 오류
0 ms 0 KB
#include <bits/stdc++.h>

#include “icc.h”

#define MAX 105

int query(int size_a, int size_b, int a[], int b[]);

int query(std::vector<int> a,std::vector<int> b){
    for(auto&x:a)++x;
    for(auto&x:b)++x;
    return query(a.size(),b.size(),a.data(),b.data());
}

void setRoad(int a, int b);

int pai[MAX];

int find(int a){
    if(pai[a]==a){
        return a;
    }
    return pai[a]=find(pai[a]);
}

void Union(int a,int b){
    a=find(a);
    b=find(b);
    pai[a]=b;
}

void run(int N) {
    for(int i=0;i!=MAX;++i)pai[i]=i;

    for(int i=1;i!=N;++i){
        for(int u=0;u!=N;++u){
            for(int v=u+1;v!=N;++v){
                std::vector<int> a,b;
                a.push_back(u);
                b.push_back(v);
                if(query(a,b)){
                    Union(u,v);
                    setRoad(u,v);
                    goto prox;
                }
            }
        }
        prox:{}
    }
}

Compilation message

icc.cpp:3:10: error: extended character “ is not valid in an identifier
    3 | #include “icc.h”
      |          ^
icc.cpp:3:10: error: #include expects "FILENAME" or <FILENAME>
    3 | #include “icc.h”
      |          ^~~~
icc.cpp:3:17: error: extended character ” is not valid in an identifier
    3 | #include “icc.h”
      |               ^