0_0_39201207_14667.cpp:3:32: error: 'LL' does not name a type
3 | int a[5] = {1, 5, 10, 25, 50}; LL dp[251][251];
| ^~
0_0_39201207_14667.cpp: In function 'int main()':
0_0_39201207_14667.cpp:6:8: error: 'dp' was not declared in this scope
6 | memset(dp, 0, sizeof(dp));
| ^~
0_0_39201207_14667.cpp:6:1: error: 'memset' was not declared in this scope
6 | memset(dp, 0, sizeof(dp));
| ^~~~~~
0_0_39201207_14667.cpp:2:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
1 | #include <iostream> #include <cstdio> #include <cmath> #include <cstring> #include <algorithm> #define LL long long using namespace std;
+++ |+#include <cstring>
2 | int n;
0_0_39201207_14667.cpp:8:5: error: 'inti' was not declared in this scope; did you mean 'int'?
8 | for(inti=0;i<5;i++) //用的硬币
| ^~~~
| int
0_0_39201207_14667.cpp:8:12: error: 'i' was not declared in this scope
8 | for(inti=0;i<5;i++) //用的硬币
| ^
0_0_39201207_14667.cpp:10:4: error: 'k' was not declared in this scope
10 | dp[k][j] += dp[k - a[i]][j - 1]; //用j个硬币组成k值 int ans = 0;
| ^
0_0_39201207_14667.cpp:11:32: error: 'ans' was not declared in this scope; did you mean 'abs'?
11 | for (int i = 0; i <= 100; i++) ans += dp[n][i]; printf("%d\n", ans);
| ^~~
| abs
0_0_39201207_14667.cpp:11:64: error: 'ans' was not declared in this scope; did you mean 'abs'?
11 | for (int i = 0; i <= 100; i++) ans += dp[n][i]; printf("%d\n", ans);
| ^~~
| abs
|