implementer.cpp: In function ‘int main()’:
implementer.cpp:22:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
22 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
answer.code: In function ‘int main()’:
answer.code:15:1: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
15 | cin >> n;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:146,
from answer.code:1:
/usr/include/c++/13/iostream:62:18: note: ‘std::cin’ declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
answer.code:16:1: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
16 | cout << inv(n);
| ^~~~
| std::cout
/usr/include/c++/13/iostream:63:18: note: ‘std::cout’ declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~