QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#442872 | #8582. 점프 게임 | GuanYunchang | Compile Error | / | / | C++20 | 1.7kb | 2024-06-15 13:44:00 | 2024-06-15 13:44:01 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘ll play_game(ll, int, ll, std::vector<long long int>, std::vector<long long int>)’: answer.code:34:42: error: ‘a’ was not declared in this scope 34 | dp[i] = max(dp[i-1], dp[i-k]+a[i-k]); | ^ answer.code:38:42: error: ‘a’ was not declared in this scope 38 | if(i+k>n) mx = max(mx, dp[i]+a[i]); | ^ answer.code: In function ‘void freopen(std::string)’: answer.code:17:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 17 | void freopen(string s) { freopen((s+".in").c_str(), "r", stdin); freopen((s+".out").c_str(), "w", stdout); } | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ answer.code:17:73: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 17 | void freopen(string s) { freopen((s+".in").c_str(), "r", stdin); freopen((s+".out").c_str(), "w", stdout); } | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ answer.code: In function ‘ll play_game(ll, int, ll, std::vector<long long int>, std::vector<long long int>)’: answer.code:43:1: warning: control reaches end of non-void function [-Wreturn-type] 43 | } | ^