for some reason when i run this in xcode it wont run but works fine in visual studio i'm not sure what the problem is i think it may not be able to find the input file any help appreciated.
George
Washington
1789
1797
Federalist
James
Madison
1809
1817
Democratic-Republican
Andrew
Jackson
1829
1837
Democrat
William Henry
Harrison
1841
1841
Whig
Franklin
Pierce
1853
1857
Democrat
Abraham
Lincoln
1861
1865
Republican
Ulysses S.
Grant
1869
1877
Republican
Grover
Cleveland
1893
1897
Democrat
William Howard
Taft
1909
1913
Republican
Herbert
Hoover
1929
1933
Republican
Dwight D.
Eisenhower
1953
1961
Republican
Richard
Nixon
1969
1974
Republican
William Jefferson
Clinton
1993
2001
Democrat