Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:12:20: warning: init-statement in selection statements only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions]
   12 |                 if(a[i]<=__min)
      |                    ^
/in/foo.cc:12:26: error: '__min\U0000ff09' was not declared in this scope; did you mean '__min'?
   12 |                 if(a[i]<=__min)
      |                          ^~~~~~~
      |                          __min
/in/foo.cc:14:9: error: expected primary-expression before '}' token
   14 |         }
      |         ^
/in/foo.cc:13:31: error: expected ')' before '}' token
   13 |                    __min=a[i];
      |                               ^
      |                               )
   14 |         }
      |         ~                      
/in/foo.cc:12:19: note: to match this '('
   12 |                 if(a[i]<=__min)
      |                   ^
/in/foo.cc:14:9: error: expected primary-expression before '}' token
   14 |         }
      |         ^

信息

递交者
类型
自测
题目
P2851 数字替换2024.12GESP3级T1
语言
C++
递交时间
2025-11-05 11:55:34
评测时间
2025-11-05 11:55:34
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes