QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#547880#4274. $2x + 2$GuanYunchangCompile Error//C++14114b2024-09-05 12:04:002024-09-05 12:04:00

Details

answer.code:1:1: error: ‘n’ does not name a type
    1 | n = int(input())
      | ^
answer.code:9:6: error: expected constructor, destructor, or type conversion before ‘(’ token
    9 | print(ans)
      |      ^