Submission #634046

# Submission time Handle Problem Language Result Execution time Memory
634046 2022-08-23T17:58:55 Z Utaha Catfish Farm (IOI22_fish) C++17
Compilation error
0 ms 0 KB
#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

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 |   }
      |   ~