prog.cpp:2:1: error: expected unqualified-id before ‘for’
for(int i = 0; i <= 100; ++i) {
^~~
prog.cpp:2:16: error: ‘i’ does not name a type
for(int i = 0; i <= 100; ++i) {
^
prog.cpp:2:26: error: expected unqualified-id before ‘++’ token
for(int i = 0; i <= 100; ++i) {
^~
prog.cpp:5:1: error: expected unqualified-id before ‘for’
for(int i = 1; i <= 10000; ++i) {
^~~
prog.cpp:5:16: error: ‘i’ does not name a type
for(int i = 1; i <= 10000; ++i) {
^
prog.cpp:5:28: error: expected unqualified-id before ‘++’ token
for(int i = 1; i <= 10000; ++i) {
^~