Submission #705144

# Submission time Handle Problem Language Result Execution time Memory
705144 2023-03-03T12:44:26 Z danikoynov Catfish Farm (IOI22_fish) C++17
Compilation error
0 ms 0 KB
#include "fish.h"
#include "catfish.cpp"
#include <cassert>
#include <cstdio>

#include <vector>

int main() {
  int N, M;
  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;
}

/**
5 4
0 2 5
1 1 2
4 4 1
3 3 3
*/

Compilation message

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