제출 #409845

#제출 시각아이디문제언어결과실행 시간메모리
409845soba자매 도시 (APIO20_swap)C++14
컴파일 에러
0 ms0 KiB
#include "swap.h" #include <vector> void init(int N, int M, std::vector<int> U, std::vector<int> V, std::vector<int> W) { } int getMinimumFuelCapacity(int X, int Y) return -1; return 0; }

컴파일 시 표준 에러 (stderr) 메시지

swap.cpp: In function 'int getMinimumFuelCapacity(int, int)':
swap.cpp:11:12: error: expected identifier before '-' token
   11 |     return -1;
      |            ^
swap.cpp:11:5: error: named return values are no longer supported
   11 |     return -1;
      |     ^~~~~~
swap.cpp:13:1: error: expected '{' at end of input
   13 | }
      | ^
swap.cpp:13:1: warning: no return statement in function returning non-void [-Wreturn-type]