source.cpp: In function ‘int main()’: source.cpp:19:19: error: ‘scanf’ was not declared in this scope scanf("%d", &N); ^ source.cpp:33:18: error: ‘printf’ was not declared in this scope printf("%d ", R); ^