63022023-11-15 16:11:05Zsombor0707Formula-1cpp11Compilation error


N = int(input())

H = input()

V = input()

Vt = V.split()
Ht = H.split()


#ide jön a győztes ami úgy lesz hogy a lista elemeit összeadjuk és megnezzuk melyik a nagyobb

Vi = 0
for i in Vt:
	Vi += int(i)

Hi = 0
for i in Ht:
	Hi += int(i)

if (Vi > Hi):
	print("Hamilton")

else:
	print("Verstappen")

#itt kell kiírni a leggyorsabb kört

Vmax = max(Vt)
Hmax = max(Ht)

if (Vmax > Hmax):
	print("Verstappen")

else: 
	print("Hamilton")
Compilation error
exit status 1
main.cpp:13:2: error: invalid preprocessing directive #ide; did you mean #ifdef?
   13 | #ide jön a győztes ami úgy lesz hogy a lista elemeit összeadjuk és megnezzuk melyik a nagyobb
      |  ^~~
      |  ifdef
main.cpp:29:2: error: invalid preprocessing directive #itt
   29 | #itt kell kiírni a leggyorsabb kört
      |  ^~~
main.cpp:3:1: error: 'N' does not name a type
    3 | N = int(input())
      | ^
Exited with error status 1