제출 #680475

#제출 시각아이디문제언어결과실행 시간메모리
680475aabbfc21Catfish Farm (IOI22_fish)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; int main() { int n, m; long long sum = 0; cin >> n >> m; for (int i = 0; i < m; i++) { int x, y, z; cin >> x >> y >> z; sum += z; } cout << sum << "\n"; }

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

/usr/bin/ld: /tmp/ccabvV6w.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/cc4UM7sx.o:fish.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccabvV6w.o: in function `main':
grader.cpp:(.text.startup+0x25e): undefined reference to `max_weights(int, int, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status