Submission #1185820

#TimeUsernameProblemLanguageResultExecution timeMemory
1185820LeonidCukA Difficult(y) Choice (BOI21_books)C++20
Compilation error
0 ms0 KiB
#include <iostream> #include <vector> #include "books.h" using namespace std; void solve(int n, int k, long long a, int s) { int l=0,r=n-1,bb=0; vector<int>res; while(l<r) { int m=(l+r)/2; if(skim(m)>=a) { r=m; } else { l=m+1; } } while(l<n) { long long int t=skim(l); if(t>2*a||t<a){ impossible; return; } else { res.push_back(l); l++; if(res.size()==k) { answer(res); return; } } } impossible(); } int main(){ }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccgFS8Zj.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccEhFsSN.o:books.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status