제출 #303567

#제출 시각아이디문제언어결과실행 시간메모리
303567medmdg카니발 티켓 (IOI20_tickets)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #include "tickets.h" using namespace std; long long int find_maximum(int k, int[][] x){ return x[0][0]; }

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

tickets.cpp:4:41: error: multidimensional array must have bounds for all dimensions except the first
    4 | long long int find_maximum(int k, int[][] x){
      |                                         ^
tickets.cpp:4:43: error: expected ',' or '...' before 'x'
    4 | long long int find_maximum(int k, int[][] x){
      |                                           ^
tickets.cpp: In function 'long long int find_maximum(int)':
tickets.cpp:5:12: error: 'x' was not declared in this scope
    5 |     return x[0][0];
      |            ^