0_0_38614391_9574.cpp: In function 'int main()':
0_0_38614391_9574.cpp:3:12: error: 'scanf' was not declared in this scope
while (scanf("%d", &n) != EOF) {
^~~~~
0_0_38614391_9574.cpp:3:31: error: 'EOF' was not declared in this scope
while (scanf("%d", &n) != EOF) {
^~~
0_0_38614391_9574.cpp:3:31: note: 'EOF' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
0_0_38614391_9574.cpp:1:1:
+#include <cstdio>
int main() {
0_0_38614391_9574.cpp:3:31:
while (scanf("%d", &n) != EOF) {
^~~
0_0_38614391_9574.cpp:4:22: error: 'factorial' was not declared in this scope
int result = factorial(n);
^~~~~~~~~
0_0_38614391_9574.cpp:5:9: error: 'printf' was not declared in this scope
printf("%d\n", result);
^~~~~~
0_0_38614391_9574.cpp:5:9: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
|