제출 #722651

#제출 시각아이디문제언어결과실행 시간메모리
722651bin9638Thousands Islands (IOI22_islands)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>

#ifndef SKY
#include "islands.h"
#endif // SKY

using namespace std;

#define N 2010
#define ll long long
#define fs first
#define sc second
#define ii pair<int,int>
#define pb push_back

variant<bool, vector<int>> find_journey(int N, int M, vector<int> canh_fs, vector<int> canh_sc)
{

}

#ifdef SKY
int main()
{
    freopen("A.inp","r",stdin);
    freopen("A.out","w",stdout);
    ios::sync_with_stdio(0);
    cin.tie(NULL);
    cout.tie(NULL);

    return 0;
}
#endif

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

islands.cpp:9:11: error: expected ',' or '...' before numeric constant
    9 | #define N 2010
      |           ^~~~
islands.cpp:16:45: note: in expansion of macro 'N'
   16 | variant<bool, vector<int>> find_journey(int N, int M, vector<int> canh_fs, vector<int> canh_sc)
      |                                             ^
islands.cpp: In function 'std::variant<bool, std::vector<int, std::allocator<int> > > find_journey(int)':
islands.cpp:19:1: warning: no return statement in function returning non-void [-Wreturn-type]
   19 | }
      | ^