My issue
I already solve the problem but there is showing run time error .why this is happen I didn’t understand . Anyone can help me?
My code
#include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
int t,n,k;
cin>>t;
while(t--){
cin>>n>>k;
cout<<n%k<<endl;
}
return 0;
}
Learning course: Level up from 1* to 2*
Problem Link: Smallest Possible Whole Number Practice Problem in Level up from 1* to 2* - CodeChef