#include<iostream> using namespace std; int main(void){ int n,m; while(scanf("%d %d",&n,&m)!=EOF)){ cout<<n%m<<endl; } } /* F:\temp\21665680.92667\Main.cc: In function 'int main()': F:\temp\21665680.92667\Main.cc:6: error: 'scanf' was not declared in this scope F:\temp\21665680.92667\Main.cc:6: error: 'EOF' was not declared in this scope F:\temp\21665680.92667\Main.cc:6: error: expected primary-expression before ')' token F:\temp\21665680.92667\Main.cc:6: error: expected ';' before ')' token */ |
Double click to view unformatted code.