0_0_36109772_20961.cpp: In function 'int main()':
0_0_36109772_20961.cpp:20:2: error: 'ios' has not been declared
ios::sync_with_stdio(false);cin.tie(0);
^
0_0_36109772_20961.cpp:20:30: error: 'cin' was not declared in this scope
ios::sync_with_stdio(false);cin.tie(0);
^
0_0_36109772_20961.cpp:20:30: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:74:0,
from 0_0_36109772_20961.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:60:18: note: 'std::cin'
extern istream cin; /// Linked to standard input
^
0_0_36109772_20961.cpp:25:5: error: 'i' was not declared in this scope
f(i, 1, n)add(i, 1);
^
0_0_36109772_20961.cpp:25:12: error: 'f' was not declared in this scope
f(i, 1, n)add(i, 1);
^
0_0_36109772_20961.cpp:26:3: error: 'string' was not declared in this scope
string op;int x;
^
0_0_36109772_20961.cpp:26:3: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/iosfwd:39:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_36109772_20961.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stringfwd.h:62:33: note: 'std::string'
typedef basic_string<char> string;
^
0_0_36109772_20961.cpp:27:3: error: 'stack' was not declared in this scope
stack<int> st;
^
0_0_36109772_20961.cpp:27:3: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:88,
from 0_0_36109772_20961.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_stack.h:99:11: note: 'std::stack'
class stack
^
0_0_36109772_20961.cpp:27:9: error: expected primary-expression before 'int'
stack<int> st;
^
0_0_36109772_20961.cpp:31:11: error: 'op' was not declared in this scope
cin >> op;
^
0_0_36109772_20961.cpp:38:6: error: 'st' was not declared in this scope
st.push(x);
^
0_0_36109772_20961.cpp:44:9: error: 'st' was not declared in this scope
if (st.empty())continue;
^
0_0_36109772_20961.cpp:45:15: error: 'st' was not declared in this scope
int now = st.top();st.pop();
^
|