记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:7:35: error: expected ')' before '\U0000ff09'
    7 |         for (int i = 0; i < n; i++)
      |             ~                     ^~
      |                                   )
foo.cc:7:35: error: '\U0000ff09' was not declared in this scope
    7 |         for (int i = 0; i < n; i++)
      |                                   ^~
foo.cc:5:13: warning: unused variable 'a' [-Wunused-variable]
    5 |         int a = 1; int b = 1; int c = 0; int n = 0; int n1 = 1; int n2 = 2; int sum = 0;//n为项数
      |             ^
foo.cc:5:24: warning: unused variable 'b' [-Wunused-variable]
    5 |         int a = 1; int b = 1; int c = 0; int n = 0; int n1 = 1; int n2 = 2; int sum = 0;//n为项数
      |                        ^
foo.cc:5:35: warning: unused variable 'c' [-Wunused-variable]
    5 |         int a = 1; int b = 1; int c = 0; int n = 0; int n1 = 1; int n2 = 2; int sum = 0;//n为项数
      |                                   ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
1-2 斐波那契数列的和
语言
C++
递交时间
2023-10-01 00:27:17
评测时间
2023-10-01 00:27:17
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes