QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#403726#5034. >.<mekoszcCompile Error//C++142.5kb2024-05-02 18:00:532024-05-02 18:00:53

Details

answer.code: In function ‘int main()’:
answer.code:139:28: error: ‘INF’ was not declared in this scope
  139 |         printf("%lld",ans==INF? -1LL:ans);
      |                            ^~~
answer.code:108:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  108 |         scanf("%d%d%d",&n,&m,&k),idx=n;
      |         ~~~~~^~~~~~~~~~~~~~~~~~~
answer.code:111:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  111 |                 scanf("%d%d%d",&u,&v,&w);
      |                 ~~~~~^~~~~~~~~~~~~~~~~~~
answer.code:125:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  125 |                 scanf("%d",&p);
      |                 ~~~~~^~~~~~~~~
answer.code:127:30: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  127 |                         scanf("%d",a+i);
      |                         ~~~~~^~~~~~~~~~