/ SeriousOJ /

Record Detail

Compile Error

foo.c:1:5: error: initializer element is not constant
    1 | n = input()
      |     ^~~~~
foo.c:2:1: error: expected ',' or ';' before 'ans'
    2 | ans = n[-1]
      | ^~~

Code

n = input()
ans = n[-1]
if ans == 'E':
    print("Emon")
elif ans == 'M':
    print("Mahfuz")
else:
    print("IDK")

Information

Submit By
Type
Submission
Problem
P1031 Clash of programmers
Language
C99 (GCC 13.2.0)
Submit At
2024-03-08 11:52:13
Judged At
2024-11-11 03:41:06
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes