Submission #944304

#TimeUsernameProblemLanguageResultExecution timeMemory
944304bngybongybrdA Difficult(y) Choice (BOI21_books)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "books.h" using namespace std; void solve(int N, int K, long long A, int S) { // TODO implement this function if(skim(1) >= 2*A and K > 1){impossible();} if(skim(N)*K < A){impossible();} for(int i = 1; i <= S; i++){diff[i] = skim(i);} impossible(); }

Compilation message (stderr)

books.cpp: In function 'void solve(int, int, long long int, int)':
books.cpp:12:33: error: 'diff' was not declared in this scope
   12 |     for(int i = 1; i <= S; i++){diff[i] = skim(i);}
      |                                 ^~~~