0_0_29450842_16443.cpp: In function 'int main()':
0_0_29450842_16443.cpp:17:3: error: 'stack' was not declared in this scope
stack<int>s;
^
0_0_29450842_16443.cpp:17:3: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/stack:61:0,
from 0_0_29450842_16443.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_stack.h:99:11: note: 'std::stack'
class stack
^
0_0_29450842_16443.cpp:17:9: error: expected primary-expression before 'int'
stack<int>s;
^
0_0_29450842_16443.cpp:42:4: error: 's' was not declared in this scope
s.push((a+b+r)%prim[cnt]);
^
0_0_29450842_16443.cpp:47:3: error: 's' was not declared in this scope
s.push(r);
^
0_0_29450842_16443.cpp:48:15: error: 's' was not declared in this scope
printf("%d",s.top());s.pop();
^
|