제출 #1178639

#제출 시각아이디문제언어결과실행 시간메모리
1178639newbie__1Koala Game (APIO17_koala)C++20
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h> #define ll long long using namespace std; ll minValue(ll n,ll w){ vector<ll>c(n,0),r(n); c[0]=1; playRound(c,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,vector<ll>& p){ return; }

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

koala.cpp: In function 'long long int minValue(long long int, long long int)':
koala.cpp:8:5: error: 'playRound' was not declared in this scope; did you mean 'lround'?
    8 |     playRound(c,r);
      |     ^~~~~~~~~
      |     lround