제출 #821953

#제출 시각아이디문제언어결과실행 시간메모리
821953boyliguanhan메기 농장 (IOI22_fish)C++17
3 / 100
71 ms9048 KiB
#include "fish.h" #include <vector> using namespace std; long long max_weights(int N, int M, vector<int> X, vector<int> Y, vector<int> W) { long long x; for(auto i: W) x+=i; return x; }

컴파일 시 표준 에러 (stderr) 메시지

fish.cpp: In function 'long long int max_weights(int, int, std::vector<int>, std::vector<int>, std::vector<int>)':
fish.cpp:8:12: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
    8 |     return x;
      |            ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...