QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#664565#8775. MountainCraftucup-team2454#Compile Error//C++202.6kb2024-10-21 21:14:122024-10-21 21:14:12

Details

answer.code:1:1: error: ‘sing’ does not name a type
    1 | sing namespace std;
      | ^~~~
answer.code:3:17: error: ‘sqrt’ was not declared in this scope
    3 | const double s2=sqrt(2.0);
      |                 ^~~~
answer.code: In function ‘void pushdown(int, int, int)’:
answer.code:12:9: error: ‘cout’ was not declared in this scope
   12 |         cout<<"!"<<x<<" "<<l<<" "<<r<<endl;
      |         ^~~~
answer.code:12:39: error: ‘endl’ was not declared in this scope
   12 |         cout<<"!"<<x<<" "<<l<<" "<<r<<endl;
      |                                       ^~~~
answer.code: At global scope:
answer.code:64:5: error: ‘pair’ was not declared in this scope
   64 | map<pair<int,int>,bool>is;
      |     ^~~~
answer.code:64:5: error: ‘pair’ was not declared in this scope
answer.code:64:5: error: ‘pair’ was not declared in this scope
answer.code:64:5: error: ‘pair’ was not declared in this scope
answer.code:64:5: error: ‘pair’ was not declared in this scope
answer.code:64:5: error: ‘pair’ was not declared in this scope
answer.code:64:5: error: ‘pair’ was not declared in this scope
answer.code:64:5: error: ‘pair’ was not declared in this scope
answer.code:64:5: error: ‘pair’ was not declared in this scope
answer.code:64:1: error: ‘map’ does not name a type
   64 | map<pair<int,int>,bool>is;
      | ^~~
answer.code: In function ‘int main()’:
answer.code:66:5: error: ‘scanf’ was not declared in this scope
   66 |     scanf("%d%d",&q,&w);
      |     ^~~~~
answer.code:72:14: error: ‘max’ was not declared in this scope; did you mean ‘maxn’?
   72 |         L[i]=max(0,x[i]-y[i]);
      |              ^~~
      |              maxn
answer.code:73:14: error: ‘min’ was not declared in this scope; did you mean ‘main’?
   73 |         R[i]=min(w,x[i]+y[i]);
      |              ^~~
      |              main
answer.code:77:5: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
   77 |     sort(tmp+0,tmp+cnt+1);
      |     ^~~~
      |     short
answer.code:78:9: error: ‘unique’ was not declared in this scope
   78 |     cnt=unique(tmp+0,tmp+cnt+1)-tmp-1;
      |         ^~~~~~
answer.code:80:14: error: ‘lower_bound’ was not declared in this scope
   80 |         L[i]=lower_bound(tmp+0,tmp+cnt+1,L[i])-tmp;
      |              ^~~~~~~~~~~
answer.code:85:9: error: ‘cout’ was not declared in this scope
   85 |         cout<<tmp[i]<<" ";cout<<endl;
      |         ^~~~
answer.code:85:27: error: ‘cout’ was not declared in this scope
   85 |         cout<<tmp[i]<<" ";cout<<endl;
      |                           ^~~~
answer.code:85:33: error: ‘endl’ was not declared in this scope
   85 |         cout<<tmp[i]<<" ";cout<<endl;
      |                                 ^~~~
answer.code:89:12: error: ‘is’ was not declared in this scope; did you mean ‘i’?
   89 |         if(is[make_pair(x[i],y[i])]){
      |            ^~
      |            i
answer.code:89:15: error: ‘make_pair’ was not declared in this scope
   89 |         if(is[make_pair(x[i],y[i])]){
      |               ^~~~~~~~~
answer.code:99:9: error: ‘printf’ was not declared in this scope
   99 |         printf("%.12lf\n",len[1]*s2);
      |         ^~~~~~
answer.code:1:1: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
  +++ |+#include <cstdio>
    1 | sing namespace std;