제출 #490360

#제출 시각아이디문제언어결과실행 시간메모리
490360RichemSplit the Attractions (IOI19_split)C++17
컴파일 에러
0 ms0 KiB
#include <iostream> using namespace std; int[] find_split(int n, int a, int b, int c, int[] p, int[] q) { int ah[n] = {0}; return ah; }

컴파일 시 표준 에러 (stderr) 메시지

split.cpp:4:4: error: structured binding declaration cannot have type 'int'
    4 | int[] find_split(int n, int a, int b, int c, int[] p, int[] q) {
      |    ^~
split.cpp:4:4: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
split.cpp:4:4: error: empty structured binding declaration
split.cpp:4:7: error: expected initializer before 'find_split'
    4 | int[] find_split(int n, int a, int b, int c, int[] p, int[] q) {
      |       ^~~~~~~~~~