Problem factorial_easy
User Someone13912
Submission Time 2026-04-28 09:44:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

factorial_easy.cpp: In function ‘int fact(int)’:
factorial_easy.cpp:10:12: error: a function-definition is not allowed here before ‘{’ token
10 | int main() {
| ^
factorial_easy.cpp:14:1: error: expected ‘}’ at end of input
14 | }
| ^
factorial_easy.cpp:4:17: note: to match this ‘{’
4 | int fact(int n) {
| ^