Submission #944322

# Submission time Handle Problem Language Result Execution time Memory
944322 2024-03-12T14:46:25 Z bngybongybrd A Difficult(y) Choice (BOI21_books) C++17
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>

//#include "books.h"

using namespace std;

void solve(int N, int K, long long A, int S) {
    //int diff[100005];

    if(skim(1)*3 > 2*A){impossible();}
    if(skim(N)*K < A){impossible();}
    //for(int i = 1; i <= S; i++){diff[i-1] = skim(i);}

    impossible();
}

Compilation message

books.cpp: In function 'void solve(int, int, long long int, int)':
books.cpp:10:8: error: 'skim' was not declared in this scope
   10 |     if(skim(1)*3 > 2*A){impossible();}
      |        ^~~~
books.cpp:10:25: error: 'impossible' was not declared in this scope
   10 |     if(skim(1)*3 > 2*A){impossible();}
      |                         ^~~~~~~~~~
books.cpp:11:8: error: 'skim' was not declared in this scope
   11 |     if(skim(N)*K < A){impossible();}
      |        ^~~~
books.cpp:11:23: error: 'impossible' was not declared in this scope
   11 |     if(skim(N)*K < A){impossible();}
      |                       ^~~~~~~~~~
books.cpp:14:5: error: 'impossible' was not declared in this scope
   14 |     impossible();
      |     ^~~~~~~~~~