F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_35864369_6654.cpp:9:5: error: 'longlong' does not name a type
     longlong num,cost;
     ^
0_0_35864369_6654.cpp: In function 'bool judge(const node&, const node&)':
0_0_35864369_6654.cpp:14:14: error: 'const struct node' has no member named 'num'
     return a.num<b.num;
              ^
0_0_35864369_6654.cpp:14:20: error: 'const struct node' has no member named 'num'
     return a.num<b.num;
                    ^
0_0_35864369_6654.cpp: In function 'int main()':
0_0_35864369_6654.cpp:24:24: error: 'struct node' has no member named 'num'
             cin >>s[i].num>>s[i].cost;
                        ^
0_0_35864369_6654.cpp:24:34: error: 'struct node' has no member named 'cost'
             cin >>s[i].num>>s[i].cost;
                                  ^
0_0_35864369_6654.cpp:27:23: error: 'struct node' has no member named 'cost'
         dp[0][1]=s[0].cost;
                       ^
0_0_35864369_6654.cpp:31:27: error: 'struct node' has no member named 'cost'
             dp[i][1]=s[i].cost+min(dp[i-1][0],dp[i-1][1]);
                           ^
0_0_35864369_6654.cpp:35:34: error: 'struct node' has no member named 'num'
                 t+=(i-j)*(s[j+1].num-s[j].num);
                                  ^
0_0_35864369_6654.cpp:35:43: error: 'struct node' has no member named 'num'
                 t+=(i-j)*(s[j+1].num-s[j].num);
                                           ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-06-29 13:45:09, Gzip enabled