/in/foo.cc:5:1: error: 'string' does not name a type
string a,first;
^~~~~~
/in/foo.cc: In function 'int main()':
/in/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);
^
/in/foo.cc:20:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (c>80 && d== 'Y')
^~
/in/foo.cc:22:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
total =total + money ;
^~~~~
/in/foo.cc:25:13: error: 'first' was not declared in this scope
first = a;
^~~~~
/in/foo.cc:28:24: error: 'first' was not declared in this scope
printf("%s\n%d\n%d\n",first,top,total);
^~~~~