ACM contest

can i use :
freopen(“proble_name.in”,“r”,stdin);
and start taking input from stdin in the ACM ICPC contests ?

U can do that while u are testing. But while u are submitting, u’ve to read input as scanf from the user.

hows that !? i already participated in a local ACM contest and we used C++ file reading
ifstream inp(“problemname.in”);
int tc;
inp>>tc …
and submit ! and we got AC on several problems

//