brunhilda.cpp: In function 'int main()':
brunhilda.cpp:15:43: error: 'mx' was not declared in this scope
for(int j=0 ; j <= (int)1e7 ; j+=pr[i]) mx[j] = max(mx[j] , pr[i]) ;
^
brunhilda.cpp:17:6: error: 'mx' was not declared in this scope
srt[mx[0] - 1].push_back(1) ; cnt[1]++ ;
^
brunhilda.cpp:17:32: error: 'cnt' was not declared in this scope
srt[mx[0] - 1].push_back(1) ; cnt[1]++ ;
^
brunhilda.cpp:21:3: error: 'dp' was not declared in this scope
dp[i] = val ;
^
brunhilda.cpp:30:6: error: 'dp' was not declared in this scope
if(dp[val] == 1e7+1) printf("oo\n") ;
^
brunhilda.cpp:12: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:14:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d" , pr+i) ;
^
brunhilda.cpp:29:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d" , &val) ;
^