Basic C++ For Loop I'm trying to learn. Replit tells me that the for in the forloop is an error, but I don't know what's wrong. Can anyone help?

Answer:
curly brackets are missing
Explanation:
The body of the main() function need to be enclosed in curly brackets. Try this:
int P = 3000;
int main( ) {
for (int t = 0; t < 10; t++) {
cout << P;
}
}