记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:7:9: error: 'i' was not declared in this scope
     for(i=0,i<9,i++)
         ^
foo.cc:11:9: error: expected primary-expression before 'for'
         for(int j=i+1;j<10;j++)
         ^~~
foo.cc:11:9: error: expected ')' before 'for'
foo.cc:7:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for(i=0,i<9,i++)
     ^~~
foo.cc:16:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
         if(min!=i)
         ^~
foo.cc:16:17: error: 'i' was not declared in this scope
         if(min!=i)
                 ^
foo.cc:18:18: error: invalid types 'int [9][<unresolved overloaded function type>]' for array subscript
             a[min]=b[i];
                  ^
foo.cc:6:9: warning: unused variable 'n' [-Wunused-variable]
     int n=10;
         ^
foo.cc: At global scope:
foo.cc:22:2: error: expected unqualified-id before 'for'
  for(int i=1;i<9;i++)
  ^~~
foo.cc:22:14: error: 'i' does not name a type
  for(int i=1;i<9;i++)
              ^
foo.cc:22:18: error: 'i' does not name a type
  for(int i=1;i<9;i++)
                  ^
foo.cc:36:1: error: expected unqualified-id before 'for'
 for(i=0,i<10,i++)
 ^~~
foo.cc:38:5: error: expected unqualified-id before 'return'
     return 0;
     ^~~~~~
foo.cc:39:1: error: expected declaration before '}' token
 }
 ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
比赛
2021年中北算法竞赛队招新测试
语言
C++
递交时间
2021-10-24 14:30:34
评测时间
2021-10-24 14:30:34
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes