QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#470783#4928. Game With NumbersZhaoZiLongCompile Error//C++98821b2024-07-10 16:25:242024-07-10 16:25:26

詳細信息

answer.code: In function ‘long long int solve(long long int, std::vector<long long int>)’:
answer.code:11:26: error: ‘x’ does not name a type
   11 |                 for(auto x:v)
      |                          ^
answer.code:14:18: error: expected ‘;’ before ‘return’
   14 |                 }
      |                  ^
      |                  ;
   15 |                 return tot;
      |                 ~~~~~~
answer.code:15:17: error: expected primary-expression before ‘return’
   15 |                 return tot;
      |                 ^~~~~~
answer.code:14:18: error: expected ‘;’ before ‘return’
   14 |                 }
      |                  ^
      |                  ;
   15 |                 return tot;
      |                 ~~~~~~
answer.code:15:17: error: expected primary-expression before ‘return’
   15 |                 return tot;
      |                 ^~~~~~
answer.code:14:18: error: expected ‘)’ before ‘return’
   14 |                 }
      |                  ^
      |                  )
   15 |                 return tot;
      |                 ~~~~~~
answer.code:11:20: note: to match this ‘(’
   11 |                 for(auto x:v)
      |                    ^
answer.code:22:18: error: ‘x’ does not name a type
   22 |         for(auto x:v)
      |                  ^
answer.code:32:10: error: expected ‘;’ before ‘if’
   32 |         }
      |          ^
      |          ;
   33 |         if(dep % 2)
      |         ~~
answer.code:33:9: error: expected primary-expression before ‘if’
   33 |         if(dep % 2)
      |         ^~
answer.code:32:10: error: expected ‘;’ before ‘if’
   32 |         }
      |          ^
      |          ;
   33 |         if(dep % 2)
      |         ~~
answer.code:33:9: error: expected primary-expression before ‘if’
   33 |         if(dep % 2)
      |         ^~
answer.code:32:10: error: expected ‘)’ before ‘if’
   32 |         }
      |          ^
      |          )
   33 |         if(dep % 2)
      |         ~~
answer.code:22:12: note: to match this ‘(’
   22 |         for(auto x:v)
      |            ^
answer.code:41:1: warning: control reaches end of non-void function [-Wreturn-type]
   41 | }
      | ^