/ Vijos /

记录详情

Compile Error

foo.cpp:1:1: error: 'include' does not name a type
 include<stdio.h> include<stdlib.h> include<mem.h>
 ^
foo.cpp: In function 'int main()':
foo.cpp:6:37: error: 'scanf' was not declared in this scope
 for (i=1;i<=10;i++) scanf("%d",&a[i]);
                                     ^
foo.cpp:7:14: error: 'scanf' was not declared in this scope
 scanf("%d",&n);
              ^
foo.cpp:9:16: error: 'printf' was not declared in this scope
 printf("%d\n",s);
                ^
foo.cpp:5:7: warning: unused variable 'j' [-Wunused-variable]
 int i,j,n,s=0;;
       ^

信息

递交者
类型
递交
题目
P1102 陶陶摘苹果
语言
C++
递交时间
2014-01-24 22:54:29
评测时间
2014-01-24 22:54:29
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes