记录详情

Compile Error

foo.c:2:1: error: unknown type name 'using'
    2 | using namespace std;
      | ^~~~~
foo.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    2 | using namespace std;
      |                 ^~~
foo.c: In function 'main':
foo.c:8:9: error: 'cin' undeclared (first use in this function)
    8 |         cin>>n
      |         ^~~
foo.c:8:9: note: each undeclared identifier is reported only once for each function it appears in
foo.c:8:15: error: expected ';' before 'a'
    8 |         cin>>n
      |               ^
      |               ;
    9 |         a[1]=1
      |         ~      
foo.c:17:25: warning: missing terminating " character
   17 |                 cout << "2” << end1;
      |                         ^
foo.c:17:25: error: missing terminating " character
   17 |                 cout << "2” << end1;
      |                         ^~~~~~~~~~~~~
foo.c:7:13: warning: unused variable 'i' [-Wunused-variable]
    7 |         int i,n;
      |             ^
foo.c:6:25: warning: unused variable 's' [-Wunused-variable]
    6 |         long long a[50],s=0;
      |                         ^
foo.c:6:19: warning: unused variable 'a' [-Wunused-variable]
    6 |         long long a[50],s=0;
      |                   ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
A2-3 循环结构入门:斐波拉契数列的和
比赛
2023年新生赛(第一场)
语言
C
递交时间
2023-08-15 11:22:14
评测时间
2023-08-15 11:22:14
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes