QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#582430 | #9375. Tourist | Clauvenater_ | Compile Error | / | / | C++20 | 185b | 2024-09-22 16:23:48 | 2024-09-22 16:23:48 |
Judging History
answer
n = int(input())
arr = list(map(int,input().split()))
cur = 1500
ok = True
for i in range(len(arr)):
cur += arr[i]
if cur >= 4000:
print(i+1)
ok = False
break
if ok:
print(-1)
Details
answer.code:1:1: error: ‘n’ does not name a type 1 | n = int(input()) | ^