> #include <vector.h>
should be 
#include <vector>

> #include <stdio.h>
should be 
#include <cstdio>

for the rest, apply either of the proposed solutions by Tellef Fog Heen.

cheers
Uli


Reply via email to