제출 #910002

#제출 시각아이디문제언어결과실행 시간메모리
910002vjudge1경주 (Race) (IOI11_race)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; int best_path(int N,int K,int H[][],L[]){ for (int i =1; i<n; i++){ int sum; for (int ii = 0; ii <n-i;ii++){ for (int j = 0; j<i;j++){ sum += L[j+ii]; } if (sum == K)return ii; sum = 0; } } }

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

race.cpp:4:31: error: declaration of 'H' as multidimensional array must have bounds for all dimensions except the first
    4 | int best_path(int N,int K,int H[][],L[]){
      |                               ^
race.cpp:4:36: error: expected ')' before ',' token
    4 | int best_path(int N,int K,int H[][],L[]){
      |              ~                     ^
      |                                    )
race.cpp:4:40: error: expected initializer before ')' token
    4 | int best_path(int N,int K,int H[][],L[]){
      |                                        ^