QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#441344#8577. 평균 최대화GuanYunchangCompile Error//C++201.9kb2024-06-14 14:38:242024-06-14 14:38:25

Details

answer.code: In function ‘std::array<long long int, 2> maximum_average(int, int)’:
answer.code:45:18: warning: overflow in conversion from ‘double’ to ‘int’ changes value from ‘1.0e+18’ to ‘2147483647’ [-Woverflow]
   45 |         int mn = 1e18, s = 0;\
      |                  ^~~~
/usr/bin/ld: /tmp/ccp9TAjC.o: in function `main':
answer.code:(.text.startup+0x0): multiple definition of `main'; /tmp/ccksps6B.o:implementer.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status