Compile Error

foo.cc: In function 'int main()':
foo.cc:7:7: error: 'x' was not declared in this scope
    7 |  cin>>x>>y;
      |       ^
foo.cc:7:10: error: 'y' was not declared in this scope; did you mean 'yn'?
    7 |  cin>>x>>y;
      |          ^
      |          yn
foo.cc:11:12: error: expected initializer before '==' token
   11 |    int a[1]==1,a[2]==1,a[3]==2;
      |            ^~
foo.cc:12:4: error: 'a' was not declared in this scope
   12 |    a[i]=a[i-1]+a[i-2];
      |    ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
语言
C++
递交时间
2022-06-06 19:42:03
评测时间
2022-06-06 19:42:03
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes