Compile Error

/in/foo.cc:1:1: error: 'include' does not name a type
 include<bits/stdc++.h>
 ^~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:6:5: error: 'cin' was not declared in this scope
     cin>>n;for(int i=1;i<=n;i++)cin>>a[i];
     ^~~
/in/foo.cc:9:20: error: 'swap' was not declared in this scope
     {swap(a[x],a[y]);x++,y--;}
                    ^
/in/foo.cc:10:26: error: 'cout' was not declared in this scope
     for(int i=1;i<=n;i++)cout<<a[i]<<" ";   
                          ^~~~

信息

递交者
类型
递交
题目
P1105 G7-2 数组部分元素逆序存放
语言
C++
递交时间
2024-08-08 09:25:13
评测时间
2024-08-08 09:25:13
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes