QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#688861#9230. Routing K-Codesucup-team1617#Compile Error//C++233.0kb2024-10-30 14:00:012024-10-30 14:00:01

详细

answer.code: In function ‘int main()’:
answer.code:51:21: error: expected identifier before ‘this’
   51 |         auto dp=[&](this auto&& dp, int ed) ->Info{
      |                     ^~~~
answer.code:51:21: error: expected ‘,’ or ‘...’ before ‘this’
answer.code: In lambda function:
answer.code:52:27: error: ‘ed’ was not declared in this scope; did you mean ‘hd’?
   52 |                 if(is_mem[ed]) return mem[ed];
      |                           ^~
      |                           hd
answer.code:54:28: error: ‘ed’ was not declared in this scope; did you mean ‘hd’?
   54 |                 int n = to[ed];
      |                            ^~
      |                            hd
answer.code:62:52: error: use of ‘dp’ before deduction of ‘auto’
   62 |                                 children.push_back(dp(eid));
      |                                                    ^~
answer.code: In function ‘int main()’:
answer.code:26:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   26 |         scanf("%d%d", &N, &M);
      |         ~~~~~^~~~~~~~~~~~~~~~
answer.code:39:32: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   39 |                 int a, b; scanf("%d%d", &a, &b);
      |                           ~~~~~^~~~~~~~~~~~~~~~