Hello,
I have a small question to ask: Below is a simple code I wrote:

CODE:

function main()
{
for(int i=0; i<10; i++){
printf("%d\n", i);
}
}

When I run the code above, I get: "Error in line 4: syntax error". I cannot find this syntax error

However, when I run the code below, I do not get an error:

function main()
{
int i;
for(i=0; i<10; i++){
printf("%d\n", i);
}
}

To my knowledge both codes are the same. I am studying the ccyReset() in the indicator source code file and they have it written as the first code written above.
Can you please explain to me where is my syntax error?

Last edited by JJ95; 09/12/22 15:14. Reason: Spelling Mistake