Submission #961347

#TimeUsernameProblemLanguageResultExecution timeMemory
961347Mohamed_Kachef06Swapping Cities (APIO20_swap)C++17
Compilation error
0 ms0 KiB
#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 (stderr)

/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