Submission #626291

# Submission time Handle Problem Language Result Execution time Memory
626291 2022-08-11T10:59:48 Z jeroenodb Catfish Farm (IOI22_fish) C++17
Compilation error
0 ms 0 KB
#include "fish.h"
#include "fish.cpp"
#include <cassert>
#include <cstdio>

#include <vector>

int main() {
  int N, M;
  freopen("mysample.in","r",stdin);
  assert(2 == scanf("%d %d", &N, &M));

  std::vector<int> X(M), Y(M), W(M);
  for (int i = 0; i < M; ++i) {
    assert(3 == scanf("%d %d %d", &X[i], &Y[i], &W[i]));
  }

  long long result = max_weights(N, M, X, Y, W);
  printf("%lld\n", result);
  return 0;
}

Compilation message

fish.cpp:2:10: fatal error: fish.cpp: No such file or directory
    2 | #include "fish.cpp"
      |          ^~~~~~~~~~
compilation terminated.