QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#122258#6660. 택시 여행van_Dijk#Compile Error//C++143.5kb2023-07-09 21:36:512024-07-04 00:35:16

詳細信息

answer.code:11:14: warning: overflow in conversion from ‘double’ to ‘long long int’ changes value from ‘3.0e+19’ to ‘9223372036854775807’ [-Woverflow]
   11 | const ll inf=3e19;
      |              ^~~~
answer.code: In function ‘void getsiz(int, int)’:
answer.code:68:15: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   68 |     for (auto [u,w]:G[k])
      |               ^
answer.code: In function ‘void getrt(int, int)’:
answer.code:79:15: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   79 |     for (auto [u,w]:G[k])
      |               ^
answer.code: In function ‘void dfs1(int, int)’:
answer.code:95:15: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   95 |     for (auto [u,w]:G[k])
      |               ^
answer.code: In function ‘int dfs(int)’:
answer.code:110:15: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
  110 |     for (auto [u,w]:G[rt])
      |               ^
answer.code: In function ‘void ers(int, int)’:
answer.code:129:29: error: expression cannot be used as a function
  129 |         int u=P[k].back().se();
      |               ~~~~~~~~~~~~~~^~