QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#399635#8236. Snake Moveucup-team1849#Compile Error//C++142.6kb2024-04-26 16:22:552024-04-26 16:22:56

詳細信息

answer.code:9:17: warning: overflow in conversion from ‘long int’ to ‘int’ changes value from ‘4557430888798830399’ to ‘1061109567’ [-Woverflow]
    9 | const int inf = 0x3f3f3f3f3f3f3f3f;
      |                 ^~~~~~~~~~~~~~~~~~
answer.code: In function ‘void solve()’:
answer.code:25:12: error: missing template arguments before ‘need’
   25 |     vector need(n + 1 , vector<int>(m + 1 , 0));
      |            ^~~~
answer.code:26:12: error: missing template arguments before ‘vis’
   26 |     vector vis(n + 1 , vector<bool>(m + 1 , false));
      |            ^~~
answer.code:32:9: error: ‘need’ was not declared in this scope
   32 |         need[si][sj] = k - i + 1;
      |         ^~~~
answer.code:42:14: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   42 |         auto [x , y , w , len] = q.top();
      |              ^
answer.code:44:12: error: ‘vis’ was not declared in this scope
   44 |         if(vis[x][y]) continue;
      |            ^~~
answer.code:45:9: error: ‘vis’ was not declared in this scope
   45 |         vis[x][y] = 1;
      |         ^~~
answer.code:52:16: error: ‘need’ was not declared in this scope
   52 |             if(need[nx][ny] > w + 1)
      |                ^~~~