记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:15:6: error: 'i' was not declared in this scope
 for (i = 0; i < len-1;i++) {
      ^
foo.cc:16:8: error: 'j' was not declared in this scope
   for (j = 0; j < len-1 - i;j++) {
        ^
foo.cc:16:8: note: suggested alternative: 'jn'
   for (j = 0; j < len-1 - i;j++) {
        ^
        jn
foo.cc:17:8: error: 'n' was not declared in this scope
    if (n[j] > n[j + 1]) {
        ^
foo.cc:17:8: note: suggested alternative: 'yn'
    if (n[j] > n[j + 1]) {
        ^
        yn
foo.cc:18:5: error: 'temp' was not declared in this scope
     temp = n[j];
     ^~~~
foo.cc:18:5: note: suggested alternative: 'time'
     temp = n[j];
     ^~~~
     time
foo.cc:27:1: error: expected '}' at end of input
 }
 ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1001 数组--排序
语言
C++
递交时间
2021-11-07 16:54:15
评测时间
2021-11-07 16:54:15
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes