运行 ID: 51302

Main.cc: In function ‘int main()’:
Main.cc:6:23: error: ‘n’ was not declared in this scope
     while(scanf("%d",&n)!=EOF){
                       ^