제출 #928019

#제출 시각아이디문제언어결과실행 시간메모리
928019EJIC_B_KEDAX식물 비교 (IOI20_plants)C++17
컴파일 에러
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";
}

컴파일 시 표준 에러 (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 | }
      | ^