Submission #1074068

# Submission time Handle Problem Language Result Execution time Memory
1074068 2024-08-25T07:33:04 Z fv3 Rarest Insects (IOI22_insects) C++17
Compilation error
0 ms 0 KB
#include "circuit.h"
#include <bits/stdc++.h>

using namespace std;
typedef long long ll;
vector<int> A;

int N;

void init(int N_, int M, vector<int> P, vector<int> A_) 
{
  N = N_;
  A = A_;
}

int count_ways(int L, int R) 
{
  L -= N;
  R -= N;

  int sum = 0;
  for (int i = L; i <= R; i++)
  {
    A[i] ^= 1;
    sum += A[i];
  }

  return sum;
}

#include "grader.cpp"

Compilation message

insects.cpp:1:10: fatal error: circuit.h: No such file or directory
    1 | #include "circuit.h"
      |          ^~~~~~~~~~~
compilation terminated.