I typed this code.
####################
int main(){
}
for (int i = 1; 1 <= 100; i++) {
std::cout << i << “\n”;
}
####################
fizzbuzz.cpp:5:1: error: expected unqualified-id before ‘for’
for (int i = 1; 1 <= 100; i++) {
^~~
fizzbuzz.cpp:5:17: error: expected unqualified-id before numeric constant
for (int i = 1; 1 <= 100; i++) {
^
fizzbuzz.cpp:5:27: error: ‘i’ does not name a type
for (int i = 1; 1 <= 100; i++) {
^
####################
I dont understand what I did wrong. I copied exactly what the tasks asked me to do.
Please help me.
Also why is it not showing me the numbers 1 through 100 on the terminal?