0_0_22259889_11110.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
include<iostream>
^
0_0_22259889_11110.c: In function 'main':
0_0_22259889_11110.c:7:9: error: 'cin' undeclared (first use in this function)
while (cin>>n)
^
0_0_22259889_11110.c:7:9: note: each undeclared identifier is reported only once for each function it appears in
0_0_22259889_11110.c:9:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 1; i <= n;i++)
^
0_0_22259889_11110.c:9:3: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_22259889_11110.c:13:3: error: 'cout' undeclared (first use in this function)
cout << sum << endl;
^
0_0_22259889_11110.c:13:18: error: 'endl' undeclared (first use in this function)
cout << sum << endl;
^
|