QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#592418#216. Sonda [A]3un_larryfuncCompile Error//C++202.5kb2024-09-26 22:24:132024-09-26 22:24:14

Details

implementer.cpp: In function ‘void Init()’:
implementer.cpp:24:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   24 |         scanf("%d%d%d", &N, &m, &subtask_idx);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
implementer.cpp:28:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   28 |                 scanf("%d%d", &a, &b);
      |                 ~~~~~^~~~~~~~~~~~~~~~
answer.code: In function ‘int main()’:
answer.code:133:38: error: assignment of function ‘int close(int)’
  133 |                                 close=1;
      |                                 ~~~~~^~
answer.code:137:26: error: continue statement not within a loop
  137 |                 if(close)continue;
      |                          ^~~~~~~~
answer.code: At global scope:
answer.code:146:16: error: expected constructor, destructor, or type conversion before ‘(’ token
  146 |         end_tri(t,p[0],s);
      |                ^
answer.code:147:9: error: expected unqualified-id before ‘return’
  147 |         return 0;
      |         ^~~~~~
answer.code:148:1: error: expected declaration before ‘}’ token
  148 | }
      | ^