QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#202047#2919. SubprimeGuanYunchangCompile Error//C++171.1kb2023-10-05 18:47:292023-10-05 18:47:30

Details

answer.code: In function ‘int sieve(long long int)’:
answer.code:34:17: error: lvalue required as increment operand
   34 |         x = stoi(x)++;
      |             ~~~~^~~
answer.code:35:20: error: ‘i’ was not declared in this scope
   35 |         if(isPrime[i]){
      |                    ^
answer.code:40:1: warning: no return statement in function returning non-void [-Wreturn-type]
   40 | }
      | ^