Line 19: error: iostream: No such file or directory
Line 3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'namespace'
In function 'main':
Line 8: error: 'for' loop initial declaration used outside C99 mode
Line 9: error: 'cout' undeclared (first use in this function)
Line 9: error: (Each undeclared identifier is reported only once
Line 9: error: for each function it appears in.)
Line 9: error: 'endl' undeclared (first use in this function)
Line 10: error: 'cin' undeclared (first use in this function)
Line 12: error: redefinition of 'i'
Line 8: error: previous definition of 'i' was here
Line 12: error: 'for' loop initial declaration used outside C99 mode
Line 18: error: 'for' loop initial declaration used outside C99 mode