Submission #928020

# Submission time Handle Problem Language Result Execution time Memory
928020 2024-02-15T17:37:32 Z EJIC_B_KEDAX Comparing Plants (IOI20_plants) C++17
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>

using ll = long long;

using namespace std;

void init(int k, int r[]) {}

int compare_plants(int x, int y) {
    cout << "1\n";
}

Compilation message

plants.cpp: In function 'int compare_plants(int, int)':
plants.cpp:11:1: warning: no return statement in function returning non-void [-Wreturn-type]
   11 | }
      | ^
/usr/bin/ld: /tmp/ccKdrZie.o: in function `main':
grader.cpp:(.text.startup+0x2f6): undefined reference to `init(int, std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status