Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:12:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   if(a[i]==x)
   ^~
/in/foo.cc:13:12: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
    cout<<i;break;
            ^~~~~
/in/foo.cc:14:3: error: 'else' without a previous 'if'
   else 
   ^~~~

信息

递交者
类型
递交
题目
P1047 A7-4 数组的查找函数
语言
C++
递交时间
2024-03-31 13:22:49
评测时间
2024-03-31 13:22:49
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes