记录详情

Compile Error

/in/foo.cc:8:1: error: 'cin' does not name a type
    8 | cin >> n;
      | ^~~
/in/foo.cc:9:1: error: expected unqualified-id before 'for'
    9 | for(int i =1;i <=n;i++)
      | ^~~
/in/foo.cc:9:14: error: 'i' does not name a type
    9 | for(int i =1;i <=n;i++)
      |              ^
/in/foo.cc:9:20: error: 'i' does not name a type
    9 | for(int i =1;i <=n;i++)
      |                    ^
/in/foo.cc:14:1: error: 'cout' does not name a type
   14 | cout << ans;
      | ^~~~

信息

递交者
类型
递交
题目
P1026 输出和
语言
C++
递交时间
2026-12-01 16:57:28
评测时间
2026-12-01 16:57:28
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes