Submission #928019

#TimeUsernameProblemLanguageResultExecution timeMemory
928019EJIC_B_KEDAXComparing Plants (IOI20_plants)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #define x first #define y second 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:10:24: error: expected ',' or '...' before 'r'
   10 | void init(int k, int[] r) {}
      |                        ^
plants.cpp: In function 'int compare_plants(int, int)':
plants.cpp:14:1: warning: no return statement in function returning non-void [-Wreturn-type]
   14 | }
      | ^