/ Vijos /

记录详情

Compile Error

foo.cpp:1:1: error: 'include' does not name a type
 include <map> include <set> include <queue> include <stack> include <math.h> include <vector> include <cstdio> include <string> include<string.h> include <iostream> include <algorithm>
 ^
foo.cpp:3: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:4:10: error: variable or field 'bug' declared void
 void bug(string st="bug")
          ^
foo.cpp:4:10: error: 'string' was not declared in this scope
foo.cpp:5: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:5: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:49:19: error: 'getchar' was not declared in this scope
 while((ch=getchar())!='\n')
                   ^
foo.cpp:58:9: error: 'getchar' was not declared in this scope
 getchar();
         ^
foo.cpp:61:19: error: 'cnt' was not declared in this scope
 for(int cas=0;cas<cnt;cas++)
                   ^
foo.cpp:76:4: error: 'num' was not declared in this scope
 if(num[i]!=doit(ktemp,i,1,idx,id))
    ^
foo.cpp:76:31: error: 'id' was not declared in this scope
 if(num[i]!=doit(ktemp,i,1,idx,id))
                               ^
foo.cpp:76:33: error: 'doit' was not declared in this scope
 if(num[i]!=doit(ktemp,i,1,idx,id))
                                 ^
foo.cpp:84:1: error: 'cout' was not declared in this scope
 cout<<ansch[i];
 ^

信息

递交者
类型
递交
题目
P1003 等价表达式
语言
C++
递交时间
2015-03-18 11:05:27
评测时间
2015-03-18 11:05:28
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes