79782580

Date: 2025-10-04 17:10:58
Score: 1
Natty:
Report link

The immediate issue is a syntax error due to a missing semicolon.

In this line:

int s = 1 //Missing semicolon

You need to add a semicolon at the end:

int s = 1;  // Corrected

Without the semicolon, the compiler will throw an error like:

error: expected ‘,’ or ‘;’ before ‘n’
13 |     n = n+1 ;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: PRAVEEN