How to trans this code to cpp?

talmormaker

New member

it's my code. when i tried convert, it printed error

 
Last edited:

alextretyak

Administrator
Staff member
In 9th line of your Python code you assign a list of ints to variable l.
But in 40th line l[i] is assigned to input(), which type is str.

A similar problem is in lines 43 and 45 with list t.

Here is a fixed Python code.
 
Top