Problem atm
User IWKR
Submission Time 2023-12-27 22:11:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

atm.cpp:39:13: error: ‘long long int dp(long long int)’ redeclared as different kind of entity
39 | int dp(int x) {
| ^
atm.cpp:38:5: note: previous declaration ‘long long int dp [500005]’
38 | int dp[500005];
| ^~
atm.cpp: In function ‘long long int dp(long long int)’:
atm.cpp:45:22: error: ‘dp’ cannot be used as a function
45 | ans = max(ans, dp(c) + SCC[x]);
| ^
atm.cpp: In function ‘int32_t main()’:
atm.cpp:70:22: error: ‘dp’ cannot be used as a function
70 | cout << dp(parent[S]);
| ^