Submission #71675

#TimeUsernameProblemLanguageResultExecution timeMemory
71675team (#119)The Ant Doing Hard Work (FXCUP3_ant)C++98
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;
int FindK(){
    int l=0; int r=1e8-1;
    while(l<r){
        int mid=(l+r)/2;
        if(DeliverCount(mid)) r=mid;
        else l=mid+1;
    }
    return l;
}

Compilation message (stderr)

ant.cpp: In function 'int FindK()':
ant.cpp:7:12: error: 'DeliverCount' was not declared in this scope
         if(DeliverCount(mid)) r=mid;
            ^~~~~~~~~~~~