foo.cpp: In function 'int main()':
foo.cpp:98:2: error: expected primary-expression before '?' token
{?
^
foo.cpp:99:2: error: expected primary-expression before 'int'
int n=read(),lowest=read();
^
foo.cpp:99:2: error: expected ':' before 'int'
foo.cpp:99:2: error: expected primary-expression before 'int'
foo.cpp:99:2: error: expected ';' before 'int'
foo.cpp:102:8: error: 'n' was not declared in this scope
while(n--)
^
foo.cpp:105:24: error: 'lowest' was not declared in this scope
if(s[0]=='I') {if(x>=lowest) insert(root,x-sum),++all;}
^
foo.cpp:109:22: error: 'lowest' was not declared in this scope
while((t=Pre(root,lowest-sum-1))!=-1)
^