prog.cpp:1:1: error: ‘dp’ does not name a type
dp[src][1] = c[src];
^~
prog.cpp:2:1: error: expected unqualified-id before ‘for’
for(int i = n; i >= 2; i--){
^~~
prog.cpp:2:16: error: ‘i’ does not name a type
for(int i = n; i >= 2; i--){
^
prog.cpp:2:24: error: ‘i’ does not name a type
for(int i = n; i >= 2; i--){
^