Problem factorial_easy
User Yuhmama
Submission Time 2026-06-24 14:51:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

factorial_easy.cpp: In function ‘int32_t main()’:
factorial_easy.cpp:9:25: error: ‘sqrt’ was not declared in this scope
9 | for (int i = 0; i < sqrt M ; i++) {
| ^~~~
factorial_easy.cpp:9:29: error: expected ‘;’ before ‘M’
9 | for (int i = 0; i < sqrt M ; i++) {
| ^~
| ;
factorial_easy.cpp:9:31: error: expected ‘)’ before ‘;’ token
9 | for (int i = 0; i < sqrt M ; i++) {
| ~ ^~
| )
factorial_easy.cpp:9:34: error: ‘i’ was not declared in this scope
9 | for (int i = 0; i < sqrt M ; i++) {
| ^