Submission #722651

#TimeUsernameProblemLanguageResultExecution timeMemory
722651bin9638Thousands Islands (IOI22_islands)C++17
Compilation error
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

Compilation message (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 | }
      | ^