제출 #1178653

#제출 시각아이디문제언어결과실행 시간메모리
1178653newbie__1코알라 (APIO17_koala)C++17
컴파일 에러
0 ms0 KiB
#include "koala.h" #include<bits/stdc++.h> #define ll int using namespace std; ll B[100],R[100]; ll minValue(ll n,ll w){ for(ll i=0;i<n;i++){ B[i]=0; R[i]=0; } B[0]=1; playRound(B,R); for(ll i=0;i<n;i++){ if(R[i]==0){ return i; } } return 0; } ll maxValue(ll n,ll w){ // ind mx val return n; } ll greaterValue(ll n,ll w){ // ind 0 || 1 return n; } void allValues(ll n,ll w,int& p[]){ return; }

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

koala.cpp:36:31: error: declaration of 'p' as array of references
   36 | void allValues(ll n,ll w,int& p[]){
      |                               ^