Submission #928020

#TimeUsernameProblemLanguageResultExecution timeMemory
928020EJIC_B_KEDAXComparing Plants (IOI20_plants)C++17
Compilation error
0 ms0 KiB
#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 (stderr)

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