QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#87018#3002. Busy BoardyouwikeCompile Error//C++141.2kb2023-03-11 16:15:452023-03-11 16:15:48

Details

answer.code: In function ‘int main()’:
answer.code:36:13: error: redeclaration of ‘int flag’
   36 |         int flag = 0;
      |             ^~~~
answer.code:15:13: note: ‘int flag’ previously declared here
   15 |         int flag = 1;
      |             ^~~~
answer.code:11:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   11 |         scanf("%d%d", &n, &m);
      |         ~~~~~^~~~~~~~~~~~~~~~
answer.code:13:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   13 |                 scanf("%s", a[i] + 1);
      |                 ~~~~~^~~~~~~~~~~~~~~~
answer.code:17:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   17 |                 scanf("%s", b[i] + 1);
      |                 ~~~~~^~~~~~~~~~~~~~~~