QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#392779#4000. Dynamic ReachabilityZhangYiDeCompile Error//C++203.2kb2024-04-17 20:29:332024-04-17 20:29:34

Details

answer.code: In function ‘int main()’:
answer.code:139:9: error: ‘else’ without a previous ‘if’
  139 |         else puts(bfs(bel[a[i].x],bel[a[i].y])?"YES":"NO");
      |         ^~~~
answer.code:69:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   69 |   scanf("%d%d%d",&n,&m,&q);
      |   ~~~~~^~~~~~~~~~~~~~~~~~~
answer.code:71:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   71 |     scanf("%d%d",X+i,Y+i);
      |     ~~~~~^~~~~~~~~~~~~~~~
answer.code:74:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   74 |     scanf("%d",&a[i].opt);
      |     ~~~~~^~~~~~~~~~~~~~~~
answer.code:75:25: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   75 |     if(a[i].opt==1)scanf("%d",&a[i].x);
      |                    ~~~~~^~~~~~~~~~~~~~
answer.code:76:15: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   76 |     else scanf("%d%d",&a[i].x,&a[i].y);
      |          ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~