foo.cc:5:1: error: 'string' does not name a type
string a,first;
^~~~~~
foo.cc: In function 'int main()':
foo.cc:10:30: error: 'a' was not declared in this scope
scanf("%s %d %d %c %c %d",&a,&b,&c,&d,&e,&f);
^
foo.cc:20:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (c>80 && d== 'Y')
^~
foo.cc:22:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
total =total + money ;
^~~~~
foo.cc:25:13: error: 'first' was not declared in this scope
first = a;
^~~~~
foo.cc:28:24: error: 'first' was not declared in this scope
printf("%s\n%d\n%d\n",first,top,total);
^~~~~
自豪的采用jd5进行评测(github.com/masnn/jd5)