Problem dogfood
User yuanbin
Submission Time 2026-05-29 15:41:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

dogfood.cpp: In function ‘int factorial(int)’:
dogfood.cpp:6:39: error: a function-definition is not allowed here before ‘{’ token
6 | unsigned long long factorial(int n) {
| ^
dogfood.cpp:13:11: error: a function-definition is not allowed here before ‘{’ token
13 | int main(){
| ^
dogfood.cpp:39:1: error: expected ‘}’ at end of input
39 | }
| ^
dogfood.cpp:5:1: note: to match this ‘{’
5 | {
| ^