제출 #1247397

#제출 시각아이디문제언어결과실행 시간메모리
1247397fskarica메기 농장 (IOI22_fish)C++20
컴파일 에러
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; }

컴파일 시 표준 에러 (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;
      |     ^