记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:6:16: error: 'n' was not declared in this scope
    6 |         cin >> n;
      |                ^
/in/foo.cc:9:17: error: 'num' was not declared in this scope; did you mean 'enum'?
    9 |                 num = num+i;
      |                 ^~~
      |                 enum
/in/foo.cc:11:17: error: 'num' was not declared in this scope; did you mean 'enum'?
   11 |         cout << num << endl;
      |                 ^~~
      |                 enum
/in/foo.cc:5:13: warning: unused variable 'n\U0000ff0cnum' [-Wunused-variable]
    5 |         int n,num=0;
      |             ^~~~~~

信息

递交者
类型
递交
题目
P1044 计算求和
语言
C++
递交时间
2025-03-05 21:24:08
评测时间
2025-03-05 21:24:08
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes