Submission #830424

#TimeUsernameProblemLanguageResultExecution timeMemory
830424caganyanmazThousands Islands (IOI22_islands)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "islands.h" using namespace std; #ifdef DEBUGGING #include "../debug.h" #else #define debug(x...) void(42) #endif int n, m; vector<int> u, v; variant<bool, vector<int>> subtask1() { if (n <= 2) return false; array<array<int, 3>, 3> a; for (int i = 0; i < m; i++) if (u[i] <= 2 && v[i] <= 2) a[u[i]][v[i]] = i; debug(a); return vector<int>({a[0][1], a[1][2], a[2][0], a[0][2], a[2][1], a[1][0], a[2][0], a[1][2], a[0][1], a[1][0], a[2][1], a[0][2]}); } Language Result Execution time Memory 830423 2023-08-19 09:27:30 caganyanmaz variant<bool, vector<int>> find_journey(int N, int M, vector<int> U, vector<int> V) { n = N; m = M; u = U; v = V; if (n * (n-1) == m) return subtask1(); assert(false); }

Compilation message (stderr)

islands.cpp:25:14: error: invalid digit "8" in octal constant
   25 | 830423  2023-08-19 09:27:30  caganyanmaz
      |              ^~
islands.cpp:25:20: error: invalid digit "9" in octal constant
   25 | 830423  2023-08-19 09:27:30  caganyanmaz
      |                    ^~
islands.cpp:24:3: error: 'Language' does not name a type
   24 |   Language  Result  Execution time  Memory
      |   ^~~~~~~~