0_0_37014808_15887.cpp:6:5: error: 'll' does not name a type
ll ans;
^
0_0_37014808_15887.cpp:9:9: error: 'll' does not name a type
ll t,val;
^
0_0_37014808_15887.cpp:15:19: error: 'll' has not been declared
bool judge(int id,ll sum,int time)//¼ôÖ¦ÅжÏ
^
0_0_37014808_15887.cpp: In function 'bool judge(int, int, int)':
0_0_37014808_15887.cpp:18:23: error: 'struct Node' has no member named 't'
if(time>=a[i].t){ time-=a[i].t; sum+=a[i].val; }
^
0_0_37014808_15887.cpp:18:38: error: 'struct Node' has no member named 't'
if(time>=a[i].t){ time-=a[i].t; sum+=a[i].val; }
^
0_0_37014808_15887.cpp:18:51: error: 'struct Node' has no member named 'val'
if(time>=a[i].t){ time-=a[i].t; sum+=a[i].val; }
^
0_0_37014808_15887.cpp:19:37: error: 'struct Node' has no member named 't'
else{ sum+=a[id].rate*(a[i].t-time); }
^
0_0_37014808_15887.cpp:21:16: error: 'ans' was not declared in this scope
return sum>ans;
^
0_0_37014808_15887.cpp: At global scope:
0_0_37014808_15887.cpp:23:17: error: 'll' has not been declared
void DFS(int id,ll sum,int time)
^
0_0_37014808_15887.cpp: In function 'void DFS(int, int, int)':
0_0_37014808_15887.cpp:27:28: error: 'ans' was not declared in this scope
if(sum+a[id].rate*time<ans) return ;
^
0_0_37014808_15887.cpp:29:8: error: 'ans' was not declared in this scope
if(ans<sum) ans=sum;
^
0_0_37014808_15887.cpp:32:15: error: 'struct Node' has no member named 't'
if( a[id].t<=time ) DFS(id+1,sum+a[id].val,time-a[id].t);
^
0_0_37014808_15887.cpp:32:44: error: 'struct Node' has no member named 'val'
if( a[id].t<=time ) DFS(id+1,sum+a[id].val,time-a[id].t);
^
0_0_37014808_15887.cpp:32:59: error: 'struct Node' has no member named 't'
if( a[id].t<=time ) DFS(id+1,sum+a[id].val,time-a[id].t);
^
0_0_37014808_15887.cpp: In function 'int main()':
0_0_37014808_15887.cpp:38:18: error: 'sdd' was not declared in this scope
while(sdd(n,m)==2){
^
0_0_37014808_15887.cpp:40:13: error: 'cin' was not declared in this scope
cin>>a[i].t>>a[i].val;
^
0_0_37014808_15887.cpp:40:23: error: 'struct Node' has no member named 't'
cin>>a[i].t>>a[i].val;
^
0_0_37014808_15887.cpp:40:31: error: 'struct Node' has no member named 'val'
cin>>a[i].t>>a[i].val;
^
0_0_37014808_15887.cpp:41:28: error: 'struct Node' has no member named 'val'
a[i].rate=a[i].val*1.0/a[i].t;
^
0_0_37014808_15887.cpp:41:41: error: 'struct Node' has no member named 't'
a[i].rate=a[i].val*1.0/a[i].t;
^
0_0_37014808_15887.cpp:43:19: error: 'sort' was not declared in this scope
sort(a,a+n);
^
0_0_37014808_15887.cpp:44:9: error: 'ans' was not declared in this scope
ans=0;
^
0_0_37014808_15887.cpp:46:16: error: 'pld' was not declared in this scope
pld(ans);
^
|