#include<bits/stdc++.h> using namespace std; int main(){ int a,b; while(scanf("%d%d",&a,&b)!=EOF){ cout<<a%b<<endl; } return 0; } /* F:\temp\21436206.629716\Main.cc:2:30: error: bits/stdc++.h: No such file or directory F:\temp\21436206.629716\Main.cc: In function 'int main()': F:\temp\21436206.629716\Main.cc:6: error: 'scanf' was not declared in this scope F:\temp\21436206.629716\Main.cc:6: error: 'EOF' was not declared in this scope F:\temp\21436206.629716\Main.cc:7: error: 'cout' was not declared in this scope F:\temp\21436206.629716\Main.cc:7: error: 'endl' was not declared in this scope */ |
Double click to view unformatted code.