0_0_26540890_6387.cpp: In function 'int main()':
0_0_26540890_6387.cpp:9:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
for(i=0;i<b-1;i++)
^
0_0_26540890_6387.cpp:15:50: error: expected '}' before ';' token
int sum=0,b[12]={31,29,31,30,31,31,30,31,30,31;
^
0_0_26540890_6387.cpp:16:20: error: expected ';' before ')' token
for(i=0;i<b-1,i++)
^
0_0_26540890_6387.cpp:17:11: error: invalid types 'int[int]' for array subscript
sum+=a[i];
^
0_0_26540890_6387.cpp:19:10: error: unable to find string literal operator 'operator""sum'
printf("%d\n"sum);
^
|