Runtime Error(ACCESS_VIOLATION) 1. while(scanf("%d",&n) )// 错误,会出现 Runtime Error(ACCESS_VIOLATION) while(scanf("%d",&n) !=EOF ) //正确