foo.cpp:15:1: error: 'define' does not name a type
define exp 1e-8 define INF 100000000 define ll long long define set(a,b) memset(a,b,sizeof(a));
^
foo.cpp:18:19: error: 'll' does not name a type
{cout<<st<<endl;} ll pow(ll a,int b) { ll sum=1; while(b--) { sum*=a; } return sum; } ll doit(char temp[],int a,int s,int t,int &id) { stack<ll>sta1;
^
foo.cpp:18:87: error: 'll' does not name a type
{cout<<st<<endl;} ll pow(ll a,int b) { ll sum=1; while(b--) { sum*=a; } return sum; } ll doit(char temp[],int a,int s,int t,int &id) { stack<ll>sta1;
^
foo.cpp: In function 'int main()':
foo.cpp:74:19: error: 'cnt' was not declared in this scope
for(int cas=0;cas<cnt;cas++)
^
foo.cpp:78:18: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
while(ch=getchar())
^
foo.cpp:89:4: error: 'num' was not declared in this scope
if(num[i]!=doit(ktemp,i,1,idx,id))
^
foo.cpp:89:31: error: 'id' was not declared in this scope
if(num[i]!=doit(ktemp,i,1,idx,id))
^
foo.cpp:89:33: error: 'doit' was not declared in this scope
if(num[i]!=doit(ktemp,i,1,idx,id))
^