Submission #809143

#TimeUsernameProblemLanguageResultExecution timeMemory
809143LiudasCatfish Farm (IOI22_fish)C++17
Compilation error
0 ms0 KiB
#include "fish.h" #include <cassert> #include <cstdio> #include <vector> long long max_weights(int N, int M, vector<int> X, vector<int> Y, vector<int> W){ long long ans = 0; for(int i : W){ ans += i; } return ans; }

Compilation message (stderr)

fish.cpp:7:37: error: 'vector' has not been declared
    7 | long long max_weights(int N, int M, vector<int> X, vector<int> Y, vector<int> W){
      |                                     ^~~~~~
fish.cpp:7:43: error: expected ',' or '...' before '<' token
    7 | long long max_weights(int N, int M, vector<int> X, vector<int> Y, vector<int> W){
      |                                           ^
fish.cpp: In function 'long long int max_weights(int, int, int)':
fish.cpp:9:17: error: 'W' was not declared in this scope
    9 |     for(int i : W){
      |                 ^