Main.cc: In function ‘int main()’:
Main.cc:10:18: error: too many arguments to function ‘int getchar()’
while(~getchar(t)){
^
In file included from /usr/include/stdio.h:859:0,
from /usr/include/c++/7/cstdio:42,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:46,
from Main.cc:1:
/usr/include/x86_64-linux-gnu/bits/stdio.h:44:1: note: declared here
getchar (void)
^~~~~~~
Main.cc:19:13: error: cannot convert ‘std::stack::size’ from type ‘std::stack::size_type (std::stack::)() const {aka long unsigned int (std::stack::)() const}’ to type ‘bool’
while(!tmp.size) cout<