foo.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
include <iostream> include <stdio.h> include <math.h> include <string.h>
^
foo.c: In function 'main':
foo.c:15:1: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
while( scanf( "%d" , &N ) != EOF )
^
foo.c:15:8: warning: incompatible implicit declaration of built-in function 'scanf' [enabled by default]
while( scanf( "%d" , &N ) != EOF )
^
foo.c:15:30: error: 'EOF' undeclared (first use in this function)
while( scanf( "%d" , &N ) != EOF )
^
foo.c:15:30: note: each undeclared identifier is reported only once for each function it appears in
foo.c:20:1: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
memset( a , 0 , sizeof( a ) );
^
foo.c:20:1: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
foo.c:47:1: error: expected expression before '/' token
/for( i = 0 ; i <= m1 ; i++ )
^
foo.c:49:34: error: expected expression before '/' token
cout << i << " " << b[i] << endl;/
^
foo.c:105:1: error: 'else' without a previous 'if'
else
^
foo.c:106:1: error: 'cout' undeclared (first use in this function)
cout << maxf << endl;
^
foo.c:106:17: error: 'endl' undeclared (first use in this function)
cout << maxf << endl;
^