Compile Error

foo.cc:4:7: error: size of array ‘a’ is not an integral constant-expression
    4 | int a[n];
      |       ^
foo.cc: In function ‘int main()’:
foo.cc:12:15: error: ‘i’ was not declared in this scope
   12 |         cout<<i<<endl;
      |               ^

信息

递交者
类型
递交
题目
P2804 美丽数字1级2 2024.9
语言
C++
递交时间
2025-04-10 21:37:34
评测时间
2025-04-10 21:37:35
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes