#include<iostream> #include<vector> using namespace std; int main() { int n, m; while (scanf("%d %d",&n,&m)!=EOF) { printf("%d\n", n % m); } } /* F:\temp\22489579.23109\Main.cc: In function 'int main()': F:\temp\22489579.23109\Main.cc:8: error: 'scanf' was not declared in this scope F:\temp\22489579.23109\Main.cc:8: error: 'EOF' was not declared in this scope F:\temp\22489579.23109\Main.cc:9: error: 'printf' was not declared in this scope */ |
Double click to view unformatted code.