/in/foo.cc: In function 'int main()':
/in/foo.cc:16:13: error: 'stack' was not declared in this scope
stack<int>ans;
^~~~~
/in/foo.cc:16:19: error: expected primary-expression before 'int'
stack<int>ans;
^~~
/in/foo.cc:17:30: error: variable 'std::stringstream ss' has initializer but incomplete type
stringstream ss(s);
^
/in/foo.cc:19:29: error: 'ans' was not declared in this scope
while(ss>>d>>c) ans.push(d);
^~~
/in/foo.cc:21:20: error: 'ans' was not declared in this scope
while(!ans.empty()){
^~~
/in/foo.cc:29:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(fm==1) printf("%d\n",fz);/
^~
/in/foo.cc:29:41: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
if(fm==1) printf("%d\n",fz);/
^
/in/foo.cc:29:41: error: expected primary-expression before '/' token
/in/foo.cc:30:13: error: expected primary-expression before 'else'
else printf("%d/%d\n",fz,fm);
^~~~
/in/foo.cc:34:13: error: 'queue' was not declared in this scope
queue<int>ans;
^~~~~
/in/foo.cc:34:19: error: expected primary-expression before 'int'
queue<int>ans;
^~~
/in/foo.cc:35:30: error: variable 'std::stringstream ss' has initializer but incomplete type
stringstream ss(s);
^
/in/foo.cc:39:17: error: 'ans' was not declared in this scope
ans.push(t);
^~~
/in/foo.cc:44:16: error: 'ans' was not declared in this scope
if(ans.size()==1) {printf("[%d]",ans.front());continue;}//×¢Òâ¸ñʽÎÊÌâ
^~~
/in/foo.cc:45:27: error: 'ans' was not declared in this scope
printf("[%d;",ans.front());
^~~