# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1237095 | ericl23302 | 나일강 (IOI24_nile) | C++20 | 컴파일 에러 | 0 ms | 0 KiB |
int minBen = LLONG_MAX / 2;
int n = W.size();
ll res = 0;
for (int i = 0; i < n; ++i) minBen = min(minBen, A[i] - B[i]), res += B[i];
res += minBen;
vector<ll> R(E.size(), res);
return R;
컴파일 시 표준 에러 (stderr) 메시지
nile.cpp:1:14: error: 'LLONG_MAX' was not declared in this scope 1 | int minBen = LLONG_MAX / 2; | ^~~~~~~~~ nile.cpp:1:1: note: 'LLONG_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? +++ |+#include <climits> 1 | int minBen = LLONG_MAX / 2; nile.cpp:2:13: error: 'W' was not declared in this scope 2 | int n = W.size(); | ^ nile.cpp:3:5: error: 'll' does not name a type 3 | ll res = 0; | ^~ nile.cpp:4:5: error: expected unqualified-id before 'for' 4 | for (int i = 0; i < n; ++i) minBen = min(minBen, A[i] - B[i]), res += B[i]; | ^~~ nile.cpp:4:21: error: 'i' does not name a type 4 | for (int i = 0; i < n; ++i) minBen = min(minBen, A[i] - B[i]), res += B[i]; | ^ nile.cpp:4:28: error: expected unqualified-id before '++' token 4 | for (int i = 0; i < n; ++i) minBen = min(minBen, A[i] - B[i]), res += B[i]; | ^~ nile.cpp:5:5: error: 'res' does not name a type 5 | res += minBen; | ^~~ nile.cpp:7:12: error: 'll' was not declared in this scope 7 | vector<ll> R(E.size(), res); | ^~ nile.cpp:7:12: error: 'll' was not declared in this scope nile.cpp:7:12: error: 'll' was not declared in this scope nile.cpp:7:12: error: 'll' was not declared in this scope nile.cpp:7:12: error: 'll' was not declared in this scope nile.cpp:7:12: error: 'll' was not declared in this scope nile.cpp:7:12: error: 'll' was not declared in this scope nile.cpp:7:12: error: 'll' was not declared in this scope nile.cpp:7:12: error: 'll' was not declared in this scope nile.cpp:7:5: error: 'vector' does not name a type 7 | vector<ll> R(E.size(), res); | ^~~~~~ nile.cpp:8:5: error: expected unqualified-id before 'return' 8 | return R; | ^~~~~~