Submission #1063368

# Submission time Handle Problem Language Result Execution time Memory
1063368 2024-08-17T17:24:08 Z alexdd Magic Show (APIO24_show) C++17
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
#include "Alice.h"
using namespace std;
std::vector<std::pair<int,int>> Alice()
{
    int N = 4941;
    long long k = setN(N);
    vector<pair<int,int>> edges;
    for(int root=1;root<=N;root+=61)
    {
        for(int b=0;b<60;b++)
        {
            if(((1LL<<b)&k))
            {
                edges.push_back({root,root+1+b});
            }
        }
    }
    return edges;
}
#include <bits/stdc++.h>
#include "Alice.h"
using namespace std;
std::vector<std::pair<int,int>> Alice()
{
    int N = 4941;
    long long k = setN(N);
    vector<pair<int,int>> edges;
    for(int root=1;root<=N;root+=61)
    {
        for(int b=0;b<60;b++)
        {
            if(((1LL<<b)&k))
            {
                edges.push_back({root,root+1+b});
            }
        }
    }
    return edges;
}

Compilation message

/usr/bin/ld: /tmp/cclm3UoS.o: in function `Alice()':
Bob.cpp:(.text+0x34): undefined reference to `setN(int)'
/usr/bin/ld: /tmp/cch5HNwW.o: in function `main':
grader_bob.cpp:(.text.startup+0x324): undefined reference to `Bob(std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > >)'
collect2: error: ld returned 1 exit status