/ Vijos /

记录详情

Compile Error

/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());
                           ^~~

信息

递交者
类型
递交
题目
P1696 数与连分数
语言
C++
递交时间
2019-04-12 14:02:55
评测时间
2019-04-12 14:02:55
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes