QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#280820#7783. Military Maneuverucup-team1376#Compile Error//C++173.1kb2023-12-09 17:58:572023-12-09 17:58:57

Details

answer.code: In function ‘std::vector<std::pair<double, double> > WLY::HP(std::vector<WLY::Line>)’:
answer.code:83:22: error: ‘L’ was not declared in this scope; did you mean ‘LL’?
   83 |                 sort(L.begin(),L.end());
      |                      ^
      |                      LL
answer.code:90:28: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
   90 |                 for(rg int i=3;i<sz;i+=1)
      |                            ^
answer.code:98:28: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
   98 |                 for(rg int i=head;i<=tail;i+=1)re.emplace_back(pointmdd(Q[i],Q[i+1]));
      |                            ^
answer.code: In function ‘void WLY::main()’:
answer.code:105:28: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
  105 |                 for(rg int i=1;i<=n;i+=1)A[i].Read();
      |                            ^
answer.code:112:28: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
  112 |                 for(rg int i=1;i<=n;i+=1)
      |                            ^
answer.code:116:44: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister]
  116 |                                 for(rg int j=1;j<=n;j+=1)
      |                                            ^
answer.code:119:41: error: ‘CCF’ has not been declared
  119 |                                 MinMin+=CCF::func(HP(Key),make_pair(A[i].x,A[i].y));
      |                                         ^~~
answer.code:104:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  104 |                 scanf("%d",&n);
      |                 ~~~~~^~~~~~~~~
answer.code: In member function ‘void WLY::Vector::Read()’:
answer.code:10:41: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   10 |                 inline void Read(){scanf("%lf %lf",&x,&y);}
      |                                    ~~~~~^~~~~~~~~~~~~~~~~