Submission #1200752

#TimeUsernameProblemLanguageResultExecution timeMemory
1200752china001Swapping Cities (APIO20_swap)C++20
Compilation error
0 ms0 KiB
#include "swap.h" #include <bits/stdc++.h> #include <vector> using namespace std; #define fopen(s) freopen(s".in","r",stdin);freopen(s".out","w",stdout) #define all(x) (x).begin(), (x).end() #define len(x) (int)x.size() #define pb push_back #define F first #define S second //#define int long long #define pii pair<int,int> const int NN = 2e5 + 78 , MOD = 1e9 + 7 , inf = 1e18; const double eps = 1e-11; vector<pii> g[N]; int ww[N]; vector<int> vv; void init(int N, int M, std::vector<int> U, std::vector<int> V, std::vector<int> W) { } int getMinimumFuelCapacity(int X, int Y) { return -1; }

Compilation message (stderr)

swap.cpp:16:49: warning: overflow in conversion from 'double' to 'int' changes value from '1.0e+18' to '2147483647' [-Woverflow]
   16 | const int NN = 2e5 + 78 , MOD = 1e9 + 7 , inf = 1e18;
      |                                                 ^~~~
swap.cpp:19:15: error: 'N' was not declared in this scope; did you mean 'NN'?
   19 | vector<pii> g[N];
      |               ^
      |               NN
swap.cpp:20:8: error: 'N' was not declared in this scope; did you mean 'NN'?
   20 | int ww[N];
      |        ^
      |        NN