Submission #1201585

#TimeUsernameProblemLanguageResultExecution timeMemory
1201585dibamboo23Swapping Cities (APIO20_swap)C++20
Compilation error
0 ms0 KiB
#include "swap.h" #include <bits/stdc++.h> void init(int N, int M,std::vector<int> U, std::vector<int> V, std::vector<int> W){ return; } int getMinimumFuelCapacity(int X, int Y) { if(N==2&&M>1)return 1; return -1; }

Compilation message (stderr)

swap.cpp: In function 'int getMinimumFuelCapacity(int, int)':
swap.cpp:10:12: error: 'N' was not declared in this scope
   10 |         if(N==2&&M>1)return 1;
      |            ^
swap.cpp:10:18: error: 'M' was not declared in this scope
   10 |         if(N==2&&M>1)return 1;
      |                  ^