Submission #1200890

#TimeUsernameProblemLanguageResultExecution timeMemory
1200890mr_junkSwapping Cities (APIO20_swap)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> include "swap.h" #define file(s) if (fopen(s".in", "r")) freopen(s".in", "r", stdin), freopen(s".out", "w", stdout) #define int long long using namespace std; const int NN=1e2+60,N=1e6+70,MOD=1e9+7,inf=1e18+7,pr1=420,K=(int)(sqrt(2e5)); int binpow (int num,int pw,int MOD1=MOD){ if (pw==0) return 1; int x=binpow(num,pw/2,MOD1); x=x*x%MOD1; if (pw%2==1) x=x*num%MOD1; return x%MOD1;} vector<pair<int,int>> g[N]; int getMinimumFuelCapacity(int X, int Y) { return -1; } void init(int N, int M, vector<int> U, vector<int> V, vector<int> W) { }

Compilation message (stderr)

swap.cpp:2:1: error: 'include' does not name a type
    2 | include "swap.h"
      | ^~~~~~~
swap.cpp:12:1: error: 'vector' does not name a type
   12 | vector<pair<int,int>> g[N];
      | ^~~~~~
swap.cpp:17:11: error: 'vector' has not been declared
   17 |           vector<int> U, vector<int> V, vector<int> W) {
      |           ^~~~~~
swap.cpp:17:17: error: expected ',' or '...' before '<' token
   17 |           vector<int> U, vector<int> V, vector<int> W) {
      |                 ^