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 ;