运行 ID: 108490

Main.cc:3:2: error: invalid preprocessing directive #definemchuantongmeide
 #definemchuantongmeide
  ^~~~~~~~~~~~~~~~~~~~~
Main.cc:4:1: error: ‘usingnamespacestd’ does not name a type
 usingnamespacestd;
 ^~~~~~~~~~~~~~~~~
Main.cc:5:1: error: ‘intm’ does not name a type; did you mean ‘int’?
 intm,n,p,q,d;
 ^~~~
 int
Main.cc:6:1: error: ‘intx1’ does not name a type; did you mean ‘int’?
 intx1,y1,x2,y2;
 ^~~~~
 int
Main.cc:7:1: error: ‘structnode’ does not name a type; did you mean ‘strtod’?
 structnode
 ^~~~~~~~~~
 strtod
Main.cc:11:1: error: ‘nodex’ does not name a type
 nodex[1005],y[1005];
 ^~~~~
Main.cc:13:8: error: expected constructor, destructor, or type conversion before ‘(’ token
 boolcmp(nodea,nodeb)
        ^
Main.cc:18:9: error: expected constructor, destructor, or type conversion before ‘(’ token
 boolcmp_(nodea,nodeb)
         ^
Main.cc:23:9: error: ISO C++ forbids declaration of ‘intmain’ with no type [-fpermissive]
 intmain()
         ^
Main.cc: In function ‘int intmain()’:
Main.cc:25:1: error: ‘cin’ was not declared in this scope
 cin>>m>>n>>p>>q>>d;
 ^~~
Main.cc:25:1: note: suggested alternative:
In file included from Main.cc:1:0:
/usr/include/c++/7/iostream:60:18: note:   ‘std::cin’
   extern istream cin;  /// Linked to standard input
                  ^~~
Main.cc:25:6: error: ‘m’ was not declared in this scope
 cin>>m>>n>>p>>q>>d;
      ^
Main.cc:25:6: note: suggested alternative: ‘tm’
 cin>>m>>n>>p>>q>>d;
      ^
      tm
Main.cc:25:9: error: ‘n’ was not declared in this scope
 cin>>m>>n>>p>>q>>d;
         ^
Main.cc:25:12: error: ‘p’ was not declared in this scope
 cin>>m>>n>>p>>q>>d;
            ^
Main.cc:25:15: error: ‘q’ was not declared in this scope
 cin>>m>>n>>p>>q>>d;
               ^
Main.cc:25:18: error: ‘d’ was not declared in this scope
 cin>>m>>n>>p>>q>>d;
                  ^
Main.cc:26:5: error: ‘inti’ was not declared in this scope
 for(inti=1;i<=d;i++)
     ^~~~
Main.cc:26:5: note: suggested alternative: ‘int’
 for(inti=1;i<=d;i++)
     ^~~~
     int
Main.cc:26:12: error: ‘i’ was not declared in this scope
 for(inti=1;i<=d;i++)
            ^
Main.cc:28:6: error: ‘x1’ was not declared in this scope
 cin>>x1>>y1>>x2>>y2;
      ^~
Main.cc:28:10: error: ‘y1’ was not declared in this scope
 cin>>x1>>y1>>x2>>y2;
          ^~
Main.cc:28:14: error: ‘x2’ was not declared in this scope
 cin>>x1>>y1>>x2>>y2;
              ^~
Main.cc:28:18: error: ‘y2’ was not declared in this scope
 cin>>x1>>y1>>x2>>y2;
                  ^~
Main.cc:31:1: error: ‘x’ was not declared in this scope
 x[min(x1,x2)].num++;
 ^
Main.cc:31:3: error: ‘min’ was not declared in this scope
 x[min(x1,x2)].num++;
   ^~~
Main.cc:31:3: note: suggested alternative:
In file included from /usr/include/c++/7/algorithm:62:0,
                 from Main.cc:2:
/usr/include/c++/7/bits/stl_algo.h:3456:5: note:   ‘std::min’
     min(initializer_list<_Tp> __l, _Compare __comp)
     ^~~
Main.cc:36:1: error: ‘y’ was not declared in this scope
 y[min(y1,y2)].num++;
 ^
Main.cc:36:3: error: ‘min’ was not declared in this scope
 y[min(y1,y2)].num++;
   ^~~
Main.cc:36:3: note: suggested alternative:
In file included from /usr/include/c++/7/algorithm:62:0,
                 from Main.cc:2:
/usr/include/c++/7/bits/stl_algo.h:3456:5: note:   ‘std::min’
     min(initializer_list<_Tp> __l, _Compare __comp)
     ^~~
Main.cc:41:6: error: ‘x’ was not declared in this scope
 sort(x+1,x+n+1,cmp);
      ^
Main.cc:41:16: error: ‘cmp’ was not declared in this scope
 sort(x+1,x+n+1,cmp);
                ^~~
Main.cc:41:1: error: ‘sort’ was not declared in this scope
 sort(x+1,x+n+1,cmp);
 ^~~~
Main.cc:41:1: note: suggested alternative:
In file included from /usr/include/c++/7/algorithm:62:0,
                 from Main.cc:2:
/usr/include/c++/7/bits/stl_algo.h:4856:5: note:   ‘std::sort’
     sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
     ^~~~
Main.cc:42:6: error: ‘y’ was not declared in this scope
 sort(y+1,y+m+1,cmp);
      ^
Main.cc:43:16: error: ‘cmp_’ was not declared in this scope
 sort(x+1,x+p+1,cmp_);
                ^~~~
Main.cc:46:5: error: ‘inti’ was not declared in this scope
 for(inti=1;i<=p;i++)
     ^~~~
Main.cc:46:5: note: suggested alternative: ‘int’
 for(inti=1;i<=p;i++)
     ^~~~
     int
Main.cc:46:12: error: ‘i’ was not declared in this scope
 for(inti=1;i<=p;i++)
            ^
Main.cc:48:1: error: ‘cout’ was not declared in this scope
 cout<& __os)
     ^~~~
Main.cc:51:5: error: ‘inti’ was not declared in this scope
 for(inti=1;i<=q;i++)
     ^~~~
Main.cc:51:5: note: suggested alternative: ‘int’
 for(inti=1;i<=q;i++)
     ^~~~
     int
Main.cc:51:12: error: ‘i’ was not declared in this scope
 for(inti=1;i<=q;i++)
            ^
Main.cc:55:1: error: ‘return0’ was not declared in this scope
 return0;
 ^~~~~~~
Main.cc:56:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^