0_0_30540172_28137.cpp:8:11: error: reference to 'list' is ambiguous
bool comp(list xx,list yy){
^
0_0_30540172_28137.cpp:3:8: note: candidates are: struct list
struct list{
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/list:63:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:78,
from 0_0_30540172_28137.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_list.h:447:11: note: template<class _Tp, class _Alloc> class std::list
class list : protected _List_base<_Tp, _Alloc>
^
0_0_30540172_28137.cpp:8:19: error: reference to 'list' is ambiguous
bool comp(list xx,list yy){
^
0_0_30540172_28137.cpp:3:8: note: candidates are: struct list
struct list{
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/list:63:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:78,
from 0_0_30540172_28137.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_list.h:447:11: note: template<class _Tp, class _Alloc> class std::list
class list : protected _List_base<_Tp, _Alloc>
^
0_0_30540172_28137.cpp:8:26: error: expression list treated as compound expression in initializer [-fpermissive]
bool comp(list xx,list yy){
^
0_0_30540172_28137.cpp:8:27: error: expected ',' or ';' before '{' token
bool comp(list xx,list yy){
^
0_0_30540172_28137.cpp: In function 'int main()':
0_0_30540172_28137.cpp:13:13: error: template argument 1 is invalid
vector<list> a,b;
^
0_0_30540172_28137.cpp:13:13: error: template argument 2 is invalid
0_0_30540172_28137.cpp:13:16: error: invalid type in declaration before ',' token
vector<list> a,b;
^
0_0_30540172_28137.cpp:16:3: error: reference to 'list' is ambiguous
list temp;
^
0_0_30540172_28137.cpp:3:8: note: candidates are: struct list
struct list{
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/list:63:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:78,
from 0_0_30540172_28137.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_list.h:447:11: note: template<class _Tp, class _Alloc> class std::list
class list : protected _List_base<_Tp, _Alloc>
^
0_0_30540172_28137.cpp:18:4: error: 'temp' was not declared in this scope
temp.num = i;
^
0_0_30540172_28137.cpp:21:6: error: request for member 'push_back' in 'a', which is of non-class type 'int'
a.push_back(temp);
^
0_0_30540172_28137.cpp:24:4: error: 'temp' was not declared in this scope
temp.num= i;
^
0_0_30540172_28137.cpp:27:6: error: request for member 'push_back' in 'b', which is of non-class type 'int'
b.push_back(temp);
^
0_0_30540172_28137.cpp:29:10: error: request for member 'begin' in 'a', which is of non-class type 'int'
sort(a.begin(),a.end(),comp);
^
0_0_30540172_28137.cpp:29:20: error: request for member 'end' in 'a', which is of non-class type 'int'
sort(a.begin(),a.end(),comp);
^
0_0_30540172_28137.cpp:33:10: error: invalid types 'int[int]' for array subscript
if(a[i].score != b[i].score) error= 1;
^
0_0_30540172_28137.cpp:33:24: error: invalid types 'int[int]' for array subscript
if(a[i].score != b[i].score) error= 1;
^
0_0_30540172_28137.cpp:34:10: error: invalid types 'int[int]' for array subscript
if(a[i].name != b[i].name) notStable =1;
^
0_0_30540172_28137.cpp:34:23: error: invalid types 'int[int]' for array subscript
if(a[i].name != b[i].name) notStable =1;
^
0_0_30540172_28137.cpp:39:15: error: invalid types 'int[int]' for array subscript
cout<<a[i].name<<" "<<a[i].score<<endl;
^
0_0_30540172_28137.cpp:39:31: error: invalid types 'int[int]' for array subscript
cout<<a[i].name<<" "<<a[i].score<<endl;
^
0_0_30540172_28137.cpp:45:14: error: invalid types 'int[int]' for array subscript
cout<<a[i].name<<" "<<a[i].score<<endl;
^
0_0_30540172_28137.cpp:45:30: error: invalid types 'int[int]' for array subscript
cout<<a[i].name<<" "<<a[i].score<<endl;
^
0_0_30540172_28137.cpp:50:5: error: request for member 'clean' in 'a', which is of non-class type 'int'
a.clean();b.clean();
^
0_0_30540172_28137.cpp:50:15: error: request for member 'clean' in 'b', which is of non-class type 'int'
a.clean();b.clean();
^
|