QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#653040#8340. 3 SumReTF#Compile Error//C++14898b2024-10-18 19:28:482024-10-18 19:28:50

Details

answer.code:6:33: error: narrowing conversion of ‘1.000000007e+9’ from ‘double’ to ‘long long int’ [-Wnarrowing]
    6 | const int mo[3] = {998244353,1e9+7,1e9+9};
      |                              ~~~^~
answer.code:6:39: error: narrowing conversion of ‘1.000000009e+9’ from ‘double’ to ‘long long int’ [-Wnarrowing]
    6 | const int mo[3] = {998244353,1e9+7,1e9+9};
      |                                    ~~~^~
answer.code: In function ‘int main()’:
answer.code:12:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   12 |         scanf("%lld%lld",&n,&m);
      |         ~~~~~^~~~~~~~~~~~~~~~~~
answer.code:14:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   14 |                 scanf("%s",c+1);
      |                 ~~~~~^~~~~~~~~~