/ Vijos /

记录详情

Compile Error

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))
                                 ^

信息

递交者
类型
递交
题目
P1003 等价表达式
语言
C++
递交时间
2015-06-29 09:38:32
评测时间
2015-06-29 09:38:35
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes