답안 #160432

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
160432 2019-10-27T13:45:13 Z impri 코알라 (APIO17_koala) C++14
컴파일 오류
0 ms 0 KB
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int minValue(int N,int W){
int b[100];
int r[100];
b[0]=1;
playRound(b,r);
for(int i=0;i<100;i++){
    if(r[i]==0)
        return i;
}



}
int maxValue(int N,int W){
    return 0;
}
int greaterValue(int N,int W){
    return 0;
}
void allValues(int N,int W,int  *P){



}

Compilation message

koala.cpp: In function 'int minValue(int, int)':
koala.cpp:8:1: error: 'playRound' was not declared in this scope
 playRound(b,r);
 ^~~~~~~~~
koala.cpp:8:1: note: suggested alternative: 'lround'
 playRound(b,r);
 ^~~~~~~~~
 lround
koala.cpp:16:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^