Submission #634046

#TimeUsernameProblemLanguageResultExecution timeMemory
634046UtahaCatfish Farm (IOI22_fish)C++17
Compilation error
0 ms0 KiB
#include "fish.h"

#include <vector>

long long max_weights(int N, int M, std::vector<int> X, std::vector<int> Y,
                      std::vector<int> W) {
  long long ret = 0;
  for(auto x : W) {
    ret += x
  }
  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:9:13: error: expected ';' before '}' token
    9 |     ret += x
      |             ^
      |             ;
   10 |   }
      |   ~