Submission #1247397

#TimeUsernameProblemLanguageResultExecution timeMemory
1247397fskaricaCatfish Farm (IOI22_fish)C++20
Compilation error
0 ms0 KiB
#include "fish.h" #include <bits/stdc++.h> using namespace std; #define ll long long #define fi first #define se second #define pii pair<int, int> int x, m; vector <int> vx, vy, w; ll max_weights(int N, int M, vector<int> X, vector<int> Y, vector<int> W) { n = N, m = M, vx = X, vy = Y, w = W; ll ret = 0; for (auto e : w) ret += e; return ret; }

Compilation message (stderr)

fish.cpp: In function 'long long int max_weights(int, int, std::vector<int>, std::vector<int>, std::vector<int>)':
fish.cpp:15:5: error: 'n' was not declared in this scope
   15 |     n = N, m = M, vx = X, vy = Y, w = W;
      |     ^