brunhilda.cpp: In function 'int main()':
brunhilda.cpp:29:32: error: invalid types 'int[int]' for array subscript
for( j=0 ; j <= 1e7 ; j+=pr[i]) dp[j] = max(dp[j] , pr) ;
^
brunhilda.cpp:25:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d" , &n,&m ) ;
^
brunhilda.cpp:28:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d" , &pr ) ;
^
brunhilda.cpp:51:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d" , &val) ;
^