Submission #657538

#TimeUsernameProblemLanguageResultExecution timeMemory
657538coding_snorlax메기 농장 (IOI22_fish)C++17
Compilation error
0 ms0 KiB
#include "fish.h" #include<bits/stdc++.h> using namespace std; long long int max_weights(int N,int M,vector<int> x,vector<int> y,vector<int> w){ long long int answer=0; for(int i=0;i<M;i++){ answer+=W[i]; } return answer; }

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:7:17: error: 'W' was not declared in this scope
    7 |         answer+=W[i];
      |                 ^