Problem warp
User samvar0907
Submission Time 2024-03-26 19:30:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

warp.cpp:2:13: error: expected ‘,’ or ‘;’ before ‘long’
2 | #define int long long
| ^~~~
warp.cpp:5:1: note: in expansion of macro ‘int’
5 | int dp[31];
| ^~~
warp.cpp: In function ‘int32_t main()’:
warp.cpp:12:13: error: ‘dp’ was not declared in this scope
12 | dp[i] = 1;
| ^~
warp.cpp:22:40: error: ‘dp’ was not declared in this scope
22 | finalSum = (finalSum + dp[j]) % mod;
| ^~
warp.cpp:28:17: error: ‘dp’ was not declared in this scope
28 | dp[j] = (dp[j] + finalSum) % mod;
| ^~