Submission #1244491

#TimeUsernameProblemLanguageResultExecution timeMemory
1244491qwushaCounting Mushrooms (IOI20_mushrooms)C++20
Compilation error
0 ms0 KiB

#include "mushrooms.h"

#include <iostream>
#include <bits/stdc++.h>

#define fi first
#define se second

using namespace std;

int inf = 1e9 + 7;

int count_mushroom(int n) {
    int cnt = 1;
    for (int i = 1; i < n; i++) {
        vector<int> q = {0, i};
        int x = use_machine(q);
        if (x == 0) {
            cnt++;
        }
    }
    return cnt;
}


Compilation message (stderr)

/usr/bin/ld: /tmp/cc7qrCC6.o: in function `main':
stub.cpp:(.text.startup+0x86): undefined reference to `count_mushrooms(int)'
collect2: error: ld returned 1 exit status