Submission #722654

#TimeUsernameProblemLanguageResultExecution timeMemory
722654bin9638수천개의 섬 (IOI22_islands)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>

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



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

std::variant<bool, std::vector<int>> find_journey(
    int N, int M, std::vector<int> U, std::vector<int> V) {
  if (N == 4) {
    return std::vector<int>({0, 1, 2, 4, 0, 3, 2, 1, 4, 3});
  }
  return false;
}

#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:17:9: note: in expansion of macro 'N'
   17 |     int N, int M, std::vector<int> U, std::vector<int> V) {
      |         ^