Submission #111422

# Submission time Handle Problem Language Result Execution time Memory
111422 2019-05-15T10:42:24 Z Segtree Koala Game (APIO17_koala) C++14
Compilation error
0 ms 0 KB
#include<iostream>
#include<algorithm>
#include"koala.h"
using namespace std;
typedef long long ll;
int B[110],R[110];
int minValue(int N,int W){
    for(int i=1;i<N;i++){B[i]=0;} B[0]=1;
    playRound(B,R);
    for(int i=0;i<N;i++){
	if(R[i]==0)return i;
    }
}
int maxValue(int N,int W){
    
}
int greaterValue(int N,int W){
    
}
int allValues(int N,int W,int P){
    
}
/*
int main(){
    
    return 0;
}*/

Compilation message

koala.cpp: In function 'int maxValue(int, int)':
koala.cpp:16:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
koala.cpp: In function 'int greaterValue(int, int)':
koala.cpp:19:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
koala.cpp: In function 'int allValues(int, int, int)':
koala.cpp:22:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
koala.cpp: In function 'int minValue(int, int)':
koala.cpp:13:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/tmp/ccb4iNjQ.o: In function `runGame(int)':
grader.cpp:(.text+0x16b): undefined reference to `allValues(int, int, int*)'
collect2: error: ld returned 1 exit status