Submission #928019

# Submission time Handle Problem Language Result Execution time Memory
928019 2024-02-15T17:36:47 Z EJIC_B_KEDAX Comparing Plants (IOI20_plants) C++17
Compilation error
0 ms 0 KB
#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

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 | }
      | ^