0_0_21625945_12373.cpp:15:1: error: expected unqualified-id before '<' token
<span style="white-space:pre"> int javaBean;
^
0_0_21625945_12373.cpp:16:1: error: expected unqualified-id before '<' token
<span style="white-space:pre"> int catFood;
^
0_0_21625945_12373.cpp:17:1: error: expected unqualified-id before '<' token
<span style="white-space:pre"> double weight;//精度问题,float产生WA
^
0_0_21625945_12373.cpp: In function 'bool compareByWeight(Unit, Unit)':
0_0_21625945_12373.cpp:23:1: error: expected primary-expression before '<' token
<span style="white-space:pre"> return (unit1.weight > unit2.weight);
^
0_0_21625945_12373.cpp:23:2: error: 'span' was not declared in this scope
<span style="white-space:pre"> return (unit1.weight > unit2.weight);
^
0_0_21625945_12373.cpp: In function 'int main()':
0_0_21625945_12373.cpp:39:1: error: expected primary-expression before '<' token
<span style="white-space:pre"> int M, N;
^
0_0_21625945_12373.cpp:39:2: error: 'span' was not declared in this scope
<span style="white-space:pre"> int M, N;
^
0_0_21625945_12373.cpp:40:1: error: expected primary-expression before '<' token
<span style="white-space:pre"> double result;//JavaBean
^
0_0_21625945_12373.cpp:41:1: error: expected primary-expression before '<' token
<span style="white-space:pre"> int catFood;//cat Food
^
0_0_21625945_12373.cpp:42:1: error: expected primary-expression before '<' token
<span style="white-space:pre"> vector<Unit> data;
^
0_0_21625945_12373.cpp:43:1: error: expected primary-expression before '<' token
<span style="white-space:pre"> while (cin >> M >> N)
^
0_0_21625945_12373.cpp:96:1: error: expected primary-expression before '<' token
<span style="white-space:pre"> return 0;
^
|