Submission #979487

# Submission time Handle Problem Language Result Execution time Memory
979487 2024-05-11T06:27:58 Z ducksaysquack Swapping Cities (APIO20_swap) C++17
Compilation error
0 ms 0 KB
#include "swap.h"
#include <bits/stdc++.h>
#define int long long
using namespace std;
bool yes = true;
void init(int n, int m, vector<int> u, vector<int> v, vector<int> w) {
	yes = n == m;
}
int getMinimumFuelCapacity(int x, int y) {
	return yes? max_element(begin(w),end(w)):-1;
}

Compilation message

swap.cpp: In function 'long long int getMinimumFuelCapacity(long long int, long long int)':
swap.cpp:10:32: error: 'w' was not declared in this scope
   10 |  return yes? max_element(begin(w),end(w)):-1;
      |                                ^