/ Vijos /

记录详情

Compile Error

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;
                 ^

信息

递交者
类型
递交
题目
P1814 细胞分裂
语言
C
递交时间
2014-11-06 17:34:16
评测时间
2014-11-06 17:34:17
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes