Scanner not working in compilation but working in submission

for every problem Scanner is not working as it is showing error in nextInt() function in compilation . But the same code is getting accepted as correct when submitted.

@fazalrehan0_gmail.com it is working fine .try and clear your browser cache and hard refreshing your page