0_0_33065281_29920.cpp: In function 'int main()':
0_0_33065281_29920.cpp:28:7: error: expected unqualified-id before 'case'
int case, n;
^
0_0_33065281_29920.cpp:29:10: error: expected primary-expression before 'case'
cin >> case >> n;
^
0_0_33065281_29920.cpp:30:24: error: 'n' was not declared in this scope
for (int i = 1; i <= n;i++)
^
0_0_33065281_29920.cpp:35:11: error: expected primary-expression before 'case'
cout << case << " " << (n + 1) / 2 << endl;
^
0_0_33065281_29920.cpp:36:27: error: 'n' was not declared in this scope
sort(arr + 1, arr + 1 + n, cmp);//将序列从大到小排序
^
0_0_33065281_29920.cpp:43:13: error: request for member 'index' in 'a[j]', which is of non-class type 'int'
if(a[j].index<=i)
^
0_0_33065281_29920.cpp:48:20: error: request for member 'v' in 'a[j]', which is of non-class type 'int'
cout << a[j].v;
^
0_0_33065281_29920.cpp:53:18: error: request for member 'v' in 'a[j]', which is of non-class type 'int'
<< a[j].v;
^
0_0_33065281_29920.cpp:56:28: error: request for member 'v' in 'a[j]', which is of non-class type 'int'
cout << " " << a[j].v;
^
|