Problem factorial_easy
User XinLoiDuongNgu
Submission Time 2025-08-31 10:55:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

factorial_easy.cpp:4:1: error: expected ‘,’ or ‘;’ before ‘using’
4 | using namespace std;
| ^~~~~
factorial_easy.cpp: In function ‘int main()’:
factorial_easy.cpp:16:2: error: ‘ios’ has not been declared
16 | ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
| ^~~
factorial_easy.cpp:16:26: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
16 | ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
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:16:37: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
16 | ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);