Submission #920834

# Submission time Handle Problem Language Result Execution time Memory
920834 2024-02-03T04:58:27 Z vjudge1 Airline Route Map (JOI18_airline) C++17
Compilation error
0 ms 0 KB
#include "Alicelib.h"
#include <bits/stdc++.h>
using namespace std;
#define pii pair<int,int>
#define fi first
#define se second
 
void Alice( int N, int M, int A[], int B[]){
    int cur=1000;
    vector<int> c(N,0);
    for(int i=0;i<N;i++){
        if(__builtin_popcount(i)<=8) c[i]=i;
        else{
            while(__builtin_popcount(cur)>8) cur++;
            c[i]=cur++;
        }
    }
    vector<pii> p;
    for(int i=0;i<M;i++) p.push_back({A[i],B[i]});
    for(int i=0;i<N;i++){
        p.push_back({i,N+10});p.push_back({i,N+11});
        for(int j=0;j<=9;j++) if(c[i]&(1<<j)) p.push_back({i,N+j});
    }
    for(int i=0;i<=9;i++) p.push_back({N+i,N+11});
    for(int i=0;i<9;i++) p.push_back({N+i,N+i+1});
    for(int i=2;i<=4;i++) p.push_back({N,N+i});
    InitG(N+12,(int)p.size());
    for(int i=0;i<(int)p.size();i++) MakeG(i,p[i].fi,p[i].se);
}



    

Compilation message

/usr/bin/ld: /tmp/ccvOdKU3.o: in function `main':
grader_bob.cpp:(.text.startup+0xb2): undefined reference to `Bob(int, int, int*, int*)'
collect2: error: ld returned 1 exit status