foo.cc: In function 'int main()':
foo.cc:32:30: error: variable 'std::stringstream ss' has initializer but incomplete type
stringstream ss(s);
^
foo.cc:49:13: error: 'queue' was not declared in this scope
queue<int>ans;
^~~~~
foo.cc:49:19: error: expected primary-expression before 'int'
queue<int>ans;
^~~
foo.cc:50:30: error: variable 'std::stringstream ss' has initializer but incomplete type
stringstream ss(s);
^
foo.cc:62:17: error: 'ans' was not declared in this scope
ans.push(t);
^~~
foo.cc:67:16: error: 'ans' was not declared in this scope
if(ans.size()==1) {printf("[%d]",ans.front());continue;}//注意格式问题
^~~
foo.cc:68:27: error: 'ans' was not declared in this scope
printf("[%d;",ans.front());
^~~
自豪的采用jd5进行评测(github.com/masnn/jd5)