F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_34379972_21259.cpp:3:2: error: 'string' does not name a type
  string name;
  ^
0_0_34379972_21259.cpp:4:2: error: 'string' does not name a type
  string where;
  ^
0_0_34379972_21259.cpp: In function 'int main()':
0_0_34379972_21259.cpp:10:2: error: 'cin' was not declared in this scope
  cin>>n;
  ^
0_0_34379972_21259.cpp:20:14: error: 'struct fruit' has no member named 'name'
    cin>>a[i].name>>a[i].where>>a[i].xl;
              ^
0_0_34379972_21259.cpp:20:25: error: 'struct fruit' has no member named 'where'
    cin>>a[i].name>>a[i].where>>a[i].xl;
                         ^
0_0_34379972_21259.cpp:24:13: error: 'struct fruit' has no member named 'where'
     if(a[j].where>a[j+1].where){
             ^
0_0_34379972_21259.cpp:24:26: error: 'struct fruit' has no member named 'where'
     if(a[j].where>a[j+1].where){
                          ^
0_0_34379972_21259.cpp:33:14: error: 'struct fruit' has no member named 'name'
     if((a[j].name>a[j+1].name&&a[j].where==a[j+1].where)&&a[j].xl){
              ^
0_0_34379972_21259.cpp:33:26: error: 'struct fruit' has no member named 'name'
     if((a[j].name>a[j+1].name&&a[j].where==a[j+1].where)&&a[j].xl){
                          ^
0_0_34379972_21259.cpp:33:37: error: 'struct fruit' has no member named 'where'
     if((a[j].name>a[j+1].name&&a[j].where==a[j+1].where)&&a[j].xl){
                                     ^
0_0_34379972_21259.cpp:33:51: error: 'struct fruit' has no member named 'where'
     if((a[j].name>a[j+1].name&&a[j].where==a[j+1].where)&&a[j].xl){
                                                   ^
0_0_34379972_21259.cpp:39:15: error: 'struct fruit' has no member named 'name'
       if(a[j].name==a[j+1].name&&a[j+1].xl&&a[j].where==a[j+1].where){
               ^
0_0_34379972_21259.cpp:39:28: error: 'struct fruit' has no member named 'name'
       if(a[j].name==a[j+1].name&&a[j+1].xl&&a[j].where==a[j+1].where){
                            ^
0_0_34379972_21259.cpp:39:50: error: 'struct fruit' has no member named 'where'
       if(a[j].name==a[j+1].name&&a[j+1].xl&&a[j].where==a[j+1].where){
                                                  ^
0_0_34379972_21259.cpp:39:64: error: 'struct fruit' has no member named 'where'
       if(a[j].name==a[j+1].name&&a[j+1].xl&&a[j].where==a[j+1].where){
                                                                ^
0_0_34379972_21259.cpp:55:3: error: 'cout' was not declared in this scope
   cout<<b[0].where<<endl;
   ^
0_0_34379972_21259.cpp:55:14: error: 'struct fruit' has no member named 'where'
   cout<<b[0].where<<endl;
              ^
0_0_34379972_21259.cpp:55:21: error: 'endl' was not declared in this scope
   cout<<b[0].where<<endl;
                     ^
0_0_34379972_21259.cpp:56:26: error: 'struct fruit' has no member named 'name'
   cout<<"   |----"<<b[0].name<<'('<<b[0].xl<<')'<<endl;
                          ^
0_0_34379972_21259.cpp:58:11: error: 'struct fruit' has no member named 'where'
   if(b[i].where!=b[i-1].where){
           ^
0_0_34379972_21259.cpp:58:25: error: 'struct fruit' has no member named 'where'
   if(b[i].where!=b[i-1].where){
                         ^
0_0_34379972_21259.cpp:62:15: error: 'struct fruit' has no member named 'where'
    cout<<b[i].where<<endl;
               ^
0_0_34379972_21259.cpp:65:26: error: 'struct fruit' has no member named 'name'
   cout<<"   |----"<<b[i].name<<'('<<b[i].xl<<')'<<endl; 
                          ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-07-01 18:53:47, Gzip enabled