Problem factorial
User ATHY
Submission Time 2024-06-20 15:21:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

factorial.cpp: In function ‘int main()’:
factorial.cpp:17:2: error: expected ‘,’ or ‘;’ before ‘for’
17 | for (int i=0; i<n; i++) {
| ^~~
factorial.cpp:17:16: error: ‘i’ was not declared in this scope
17 | for (int i=0; i<n; i++) {
| ^
factorial.cpp:23:5: error: expected ‘}’ at end of input
23 | }
| ^
factorial.cpp:14:12: note: to match this ‘{’
14 | int main() {
| ^