QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#510913#5199. Amazing TrickZhaoZiLongCompile Error//C++201.5kb2024-08-09 14:02:172024-08-09 14:02:18

Details

answer.code: In function ‘void slove1()’:
answer.code:64:29: error: expected primary-expression before ‘return’
   64 |         if(check()) write(),return 0;
      |                             ^~~~~~
answer.code: In function ‘void slove()’:
answer.code:69:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   69 |     scanf("%d", &n);
      |     ~~~~~^~~~~~~~~~
answer.code:70:39: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   70 |     for (int i = 1; i <= n; i++) scanf("%d", &a[i]);
      |                                  ~~~~~^~~~~~~~~~~~~
answer.code: In function ‘int main()’:
answer.code:80:17: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   80 |     int t; scanf("%d", &t);
      |            ~~~~~^~~~~~~~~~