QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#776376#9783. Duloc Networkucup-team159#Compile Error//C++205.7kb2024-11-23 18:24:552024-11-23 18:24:55

詳細信息

answer.code: In member function ‘void Solver::solve()’:
answer.code:119:16: error: ‘to’ was not declared in this scope; did you mean ‘tm’?
  119 |       now = sz(to[vs[0]]);
      |                ^~
answer.code:14:21: note: in definition of macro ‘sz’
   14 | #define sz(x) (int)(x).size()
      |                     ^
answer.code: In function ‘int geti()’:
answer.code:26:23: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   26 | int geti(){int x;scanf("%d",&x);return x;}
      |                  ~~~~~^~~~~~~~~