QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#798643#9791. Intrusive DonkeyGuanYunchangCompile Error//C++171.2kb2024-12-04 15:38:572024-12-04 15:38:59

Details

answer.code:14:14: error: conversion from ‘double’ to ‘long unsigned int’ in a converted constant expression
   14 | ll n,q,tr[1e6+10],opt;
      |           ~~~^~~
answer.code:14:14: error: could not convert ‘(1.0e+6 + (double)10)’ from ‘double’ to ‘long unsigned int’
   14 | ll n,q,tr[1e6+10],opt;
      |           ~~~^~~
      |              |
      |              double
answer.code:14:14: error: size of array ‘tr’ has non-integral type ‘double’
answer.code: In function ‘char query(ll, ll, ll, ll)’:
answer.code:49:1: warning: control reaches end of non-void function [-Wreturn-type]
   49 | }
      | ^
answer.code: In function ‘int main()’:
answer.code:52:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   52 |         scanf("%s",s);
      |         ~~~~~^~~~~~~~