제출 #634046

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

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