제출 #1201585

#제출 시각아이디문제언어결과실행 시간메모리
1201585dibamboo23자매 도시 (APIO20_swap)C++20
컴파일 에러
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; }

컴파일 시 표준 에러 (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;
      |                  ^