Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:6:7: error: expected initializer before '<=' token
  int N<=30;
       ^~
/in/foo.cc:7:8: error: 'N' was not declared in this scope
  int a[N];
        ^
/in/foo.cc:10:15: error: 'a' was not declared in this scope
   scanf("%d",&a[i]);
               ^
/in/foo.cc:16:7: error: 'a' was not declared in this scope
    if(a[j]>a[j+1])
       ^
/in/foo.cc:26:9: error: 'a' was not declared in this scope
   cout<<a[i]<<" ";
         ^

信息

递交者
类型
递交
题目
P1163 冒泡排序
语言
C++
递交时间
2024-04-26 16:30:02
评测时间
2024-04-26 16:30:02
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes