Problem | variety |
---|---|
User | grapecoder |
Submission Time | 2023-11-18 15:39:47 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
variety.cpp: In function ‘int main()’:
variety.cpp:5:13: error: expected primary-expression before ‘long’
5 | #define lli long long int
| ^~~~
variety.cpp:45:58: note: in expansion of macro ‘lli’
45 | dp[i] = min({dp[i], dp[i - 1], dp[start] + cost + W * lli(i - end - 1)});
| ^~~
variety.cpp:5:13: error: expected ‘}’ before ‘long’
5 | #define lli long long int
| ^~~~
variety.cpp:45:58: note: in expansion of macro ‘lli’
45 | dp[i] = min({dp[i], dp[i - 1], dp[start] + cost + W * lli(i - end - 1)});
| ^~~
variety.cpp:45:16: note: to match this ‘{’
45 | dp[i] = min({dp[i], dp[i - 1], dp[start] + cost + W * lli(i - end - 1)});
| ^
variety.cpp:45:57: error: expected ‘)’ before ‘long’
45 | dp[i] = min({dp[i], dp[i - 1], dp[start] +