记录详情

Compile Error

/in/foo.cc: In function 'void Fibonacci(int)':
/in/foo.cc:5:18: warning: comparison of constant '50' with boolean expression is always true [-Wbool-compare]
  for (int i=2;0<i<50;i++)
               ~~~^~~
/in/foo.cc:5:16: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
  for (int i=2;0<i<50;i++)
               ~^~
/in/foo.cc:7:21: error: expected ',' before '-' token
   arr[i]=arr[i-1]+[i-2];
                     ^
/in/foo.cc:7:21: error: expected identifier before '-' token
/in/foo.cc: In lambda function:
/in/foo.cc:7:24: error: expected '{' before ';' token
   arr[i]=arr[i-1]+[i-2];
                        ^
/in/foo.cc: In function 'void Fibonacci(int)':
/in/foo.cc:7:18: error: no match for 'operator+' (operand types are 'int' and 'Fibonacci(int)::<lambda()>')
   arr[i]=arr[i-1]+[i-2];
                   
/in/foo.cc: In function 'int main()':
/in/foo.cc:13:2: error: 'intc' was not declared in this scope
  intc=0;
  ^~~~
/in/foo.cc:15:16: error: 'c' was not declared in this scope
  scanf_s("%d",&c);
                ^
/in/foo.cc:15:17: error: 'scanf_s' was not declared in this scope
  scanf_s("%d",&c);
                 ^

信息

递交者
类型
递交
题目
P1013 兔子数列
语言
C++
递交时间
2024-08-25 16:53:29
评测时间
2024-08-25 16:53:29
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes