| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
提醒下大家,有可能出现从没有走过的情况,也就是说如果是根据返回一个值来判断结果的话,你那个值可能从来没有赋值过if(i == m)
printf("OK\n");
else if(crash == 0)
printf("Robot %d crashes into the wall\n", nowr);
else
printf("Robot %d crashes into robot %d\n", nowr, crash);
如第一个if后我本来写的是crash == -1,这样就错了,
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator