Submission #1122429

#TimeUsernameProblemLanguageResultExecution timeMemory
1122429newscanf 함수 5 (BSC_0_7)C++20
Compilation error
0 ms0 KiB
# Correct implementation a, b = map(int, input().split()) average = (a + b) / 2 if average.is_integer(): print(int(average)) else: print(average)

Compilation message (stderr)

scanf5.cpp:1:3: error: invalid preprocessing directive #Correct
    1 | # Correct implementation
      |   ^~~~~~~
scanf5.cpp:2:1: error: 'a' does not name a type
    2 | a, b = map(int, input().split())
      | ^