/ Vijos /

记录详情

Compile Error

foo.cpp:1:1: error: 'include' does not name a type
 include <iostream> include <stdio.h> include <string.h>
 ^
foo.cpp: In function 'int main()':
foo.cpp:14:26: error: 'scanf' was not declared in this scope
 while( scanf( "%d," , &x ) != EOF && x != -1 )
                          ^
foo.cpp:14:31: error: 'EOF' was not declared in this scope
 while( scanf( "%d," , &x ) != EOF && x != -1 )
                               ^
foo.cpp:19:33: error: 'memset' was not declared in this scope
 memset( pre , 0 , sizeof( pre ) );
                                 ^
foo.cpp:46:23: error: 'max' was not declared in this scope
 ans = max( ans , f[i] );
                       ^
foo.cpp:47:1: error: 'cout' was not declared in this scope
 cout << ans << ",";
 ^
foo.cpp:51:1: error: 'cout' was not declared in this scope
 cout << ans - 1 << endl;
 ^
foo.cpp:51:20: error: 'endl' was not declared in this scope
 cout << ans - 1 << endl;
                    ^
foo.cpp:52:17: error: 'system' was not declared in this scope
 system( "pause" );
                 ^

信息

递交者
类型
递交
题目
P1303 导弹拦截
语言
C++
递交时间
2016-04-12 18:02:51
评测时间
2016-04-12 18:02:51
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes