/ Vijos /

记录详情

Compile Error

/in/foo.cc:2:5: error: 'cin' does not name a type
     cin>>n;
     ^~~
/in/foo.cc:3:5: error: expected unqualified-id before 'for'
     for(i=0;i<n;i++)
     ^~~
/in/foo.cc:3:13: error: 'i' does not name a type
     for(i=0;i<n;i++)
             ^
/in/foo.cc:3:17: error: 'i' does not name a type
     for(i=0;i<n;i++)
                 ^
/in/foo.cc:10:5: error: expected unqualified-id before 'for'
     for(i=0;i<n;i++)
     ^~~
/in/foo.cc:10:13: error: 'i' does not name a type
     for(i=0;i<n;i++)
             ^
/in/foo.cc:10:17: error: 'i' does not name a type
     for(i=0;i<n;i++)
                 ^
/in/foo.cc:17:5: error: expected unqualified-id before 'for'
     for(i=0;i<n;i++)
     ^~~
/in/foo.cc:17:13: error: 'i' does not name a type
     for(i=0;i<n;i++)
             ^
/in/foo.cc:17:17: error: 'i' does not name a type
     for(i=0;i<n;i++)
                 ^
/in/foo.cc:21:5: error: 'cout' does not name a type
     cout<<c;
     ^~~~
/in/foo.cc:22:5: error: expected unqualified-id before 'return'
     return 0;
     ^~~~~~

信息

递交者
类型
递交
题目
P1911 珠心算测验
语言
C++
递交时间
2018-07-24 11:31:07
评测时间
2018-07-24 11:31:07
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes