Submission #961347

# Submission time Handle Problem Language Result Execution time Memory
961347 2024-04-11T22:01:03 Z Mohamed_Kachef06 Swapping Cities (APIO20_swap) C++17
Compilation error
0 ms 0 KB
#include "swap.h"

#ifndef ONLINE_JUDGE
#include "grader.cpp"
#endif
#include <bits/stdc++.h>
using namespace std;

map<pair<int , int> , int> mp;


void init(int N, int M,
          std::vector<int> U, std::vector<int> V, std::vector<int> W) {
      for (int i = 0 ; i < N ; i++){
        mp[{U[i] , V[i]}] = W[i];
      }     
}

int getMinimumFuelCapacity(int X, int Y) {
  if (X == 0) return -1;
  int a = max(mp[{0 , Y}] , mp[{0 , X}]);
  return a;
}

Compilation message

/usr/bin/ld: /tmp/cc2n0wqI.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccdFzagI.o:swap.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status