运行 ID: 118682

Main.cc: In function ‘int main()’:
Main.cc:9:22: error: ‘q’ was not declared in this scope
  while(scanf("%c",&c[q]) != eof){//eof检查 
                      ^
Main.cc:9:29: error: ‘eof’ was not declared in this scope
  while(scanf("%c",&c[q]) != eof){//eof检查 
                             ^~~
Main.cc:9:29: note: suggested alternative: ‘feof’
  while(scanf("%c",&c[q]) != eof){//eof检查 
                             ^~~
                             feof