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