0_0_13832792_22337.cpp:2:2: error: 'string' does not name a type
string id,nam;
^
0_0_13832792_22337.cpp: In function 'bool com1(stu, stu)':
0_0_13832792_22337.cpp:7:12: error: 'struct stu' has no member named 'id'
return s1.id < s2.id;
^
0_0_13832792_22337.cpp:7:20: error: 'struct stu' has no member named 'id'
return s1.id < s2.id;
^
0_0_13832792_22337.cpp: In function 'bool com2(stu, stu)':
0_0_13832792_22337.cpp:11:8: error: 'struct stu' has no member named 'nam'
if(s1.nam== s2.nam) return s1.id < s2.id;
^
0_0_13832792_22337.cpp:11:17: error: 'struct stu' has no member named 'nam'
if(s1.nam== s2.nam) return s1.id < s2.id;
^
0_0_13832792_22337.cpp:11:32: error: 'struct stu' has no member named 'id'
if(s1.nam== s2.nam) return s1.id < s2.id;
^
0_0_13832792_22337.cpp:11:40: error: 'struct stu' has no member named 'id'
if(s1.nam== s2.nam) return s1.id < s2.id;
^
0_0_13832792_22337.cpp:12:12: error: 'struct stu' has no member named 'nam'
return s1.nam < s2.nam;
^
0_0_13832792_22337.cpp:12:21: error: 'struct stu' has no member named 'nam'
return s1.nam < s2.nam;
^
0_0_13832792_22337.cpp: In function 'bool com3(stu, stu)':
0_0_13832792_22337.cpp:16:32: error: 'struct stu' has no member named 'id'
if(s1.sco== s2.sco) return s1.id < s2.id;
^
0_0_13832792_22337.cpp:16:40: error: 'struct stu' has no member named 'id'
if(s1.sco== s2.sco) return s1.id < s2.id;
^
0_0_13832792_22337.cpp: In function 'int main()':
0_0_13832792_22337.cpp:25:2: error: 'vector' was not declared in this scope
vector<stu> all;
^
0_0_13832792_22337.cpp:25:12: error: expected primary-expression before '>' token
vector<stu> all;
^
0_0_13832792_22337.cpp:25:14: error: 'all' was not declared in this scope
vector<stu> all;
^
0_0_13832792_22337.cpp:27:8: error: 'cin' was not declared in this scope
while(cin >> N >> C){
^
0_0_13832792_22337.cpp:32:14: error: 'struct stu' has no member named 'id'
cin >> pp.id >> pp.nam >> pp.sco;
^
0_0_13832792_22337.cpp:32:23: error: 'struct stu' has no member named 'nam'
cin >> pp.id >> pp.nam >> pp.sco;
^
0_0_13832792_22337.cpp:37:43: error: 'sort' was not declared in this scope
case 1: sort(all.begin(),all.end(),com1); break;
^
0_0_13832792_22337.cpp:43:3: error: 'cout' was not declared in this scope
cout << "Case " << k << ":" << endl;
^
0_0_13832792_22337.cpp:43:34: error: 'endl' was not declared in this scope
cout << "Case " << k << ":" << endl;
^
0_0_13832792_22337.cpp:44:7: error: 'size_t' was not declared in this scope
for(size_t i=0;i<all.size();i++){
^
0_0_13832792_22337.cpp:44:18: error: 'i' was not declared in this scope
for(size_t i=0;i<all.size();i++){
^
|