/ 晓编程 /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:9:15: error: expected identifier before numeric constant
  for(int i =[ 0; i < n; i++){
               ^
/in/foo.cc:9:16: error: expected ']' before ';' token
  for(int i =[ 0; i < n; i++){
                ^
/in/foo.cc: In lambda function:
/in/foo.cc:9:16: error: expected '{' before ';' token
/in/foo.cc: In function 'int main()':
/in/foo.cc:9:16: error: invalid user-defined conversion from 'main()::<lambda()>' to 'int' [-fpermissive]
/in/foo.cc:9:16: note: candidate is: main()::<lambda()>::operator void (*)()() const <near match>
/in/foo.cc:9:16: note:   no known conversion from 'void (*)()' to 'int'
/in/foo.cc:11:15: error: expected ']' before ')' token
   if(a[i > mix){
               ^

信息

递交者
类型
递交
题目
P1045 冠军
语言
C++
递交时间
2020-04-05 11:24:00
评测时间
2020-04-05 11:24:00
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes