Problem | factorial_easy |
---|---|
User | NsNassCode |
Submission Time | 2024-06-20 14:42:32 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
factorial_easy.cpp: In function ‘long long int factorial_modulo(int, int)’:
factorial_easy.cpp:5:5: error: expected initializer before ‘for’
5 | for (int i = 1; i <= n; i++) {
| ^~~
factorial_easy.cpp:5:21: error: ‘i’ was not declared in this scope
5 | for (int i = 1; i <= n; i++) {
| ^
factorial_easy.cpp:8:12: error: ‘result’ was not declared in this scope
8 | return result;
| ^~~~~~
factorial_easy.cpp: In function ‘int main()’:
factorial_easy.cpp:13:6: error: ‘::cin’ has not been declared; did you mean ‘std::cin’?
13 | ::cin >> n;
| ^~~
| std::cin
In file included from factorial_easy.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
factorial_easy.cpp:17:24: error: expected ‘;’ before ‘return’
17