/ Vijos /

记录详情

Compile Error

/in/foo.cc:5:1: error: expected unqualified-id before 'for'
 for(i=0;i<n;i++){
 ^~~
/in/foo.cc:5:9: error: 'i' does not name a type
 for(i=0;i<n;i++){
         ^
/in/foo.cc:5:13: error: 'i' does not name a type
 for(i=0;i<n;i++){
             ^
/in/foo.cc:8:1: error: 'cin' does not name a type
 cin>>n;
 ^~~
/in/foo.cc:9:1: error: expected unqualified-id before 'for'
 for(i=0;i<n;i++){
 ^~~
/in/foo.cc:9:9: error: 'i' does not name a type
 for(i=0;i<n;i++){
         ^
/in/foo.cc:9:13: error: 'i' does not name a type
 for(i=0;i<n;i++){
             ^
/in/foo.cc:12:1: error: 'cout' does not name a type
 cout<<c<<endl;
 ^~~~
/in/foo.cc:13:1: error: expected unqualified-id before 'return'
 return 0;
 ^~~~~~
/in/foo.cc:14:1: error: expected declaration before '}' token
 }
 ^

信息

递交者
类型
递交
题目
P1102 陶陶摘苹果
语言
C++
递交时间
2018-08-25 22:38:50
评测时间
2018-08-25 22:38:50
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes