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_38713014_23787.cpp: In function 'void build(long long int, long long int, long long int, long long int, long long int)':
0_0_38713014_23787.cpp:60:16: error: 'add' was not declared in this scope; did you mean 'std::filesystem::perm_options::add'?
   60 |     if(x<=mid) add(l,mid,rt<<1,x,val);
      |                ^~~
      |                std::filesystem::perm_options::add
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/filesystem:46,
                 from .\stdc++.h:200:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/fs_fwd.h:211:7: note: 'std::filesystem::perm_options::add' declared here
  211 |       add       = 0x2,
      |       ^~~
0_0_38713014_23787.cpp:61:10: error: 'add' was not declared in this scope; did you mean 'std::filesystem::perm_options::add'?
   61 |     else add(mid+1,r,rt<<1|1,x,val);
      |          ^~~
      |          std::filesystem::perm_options::add
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/fs_fwd.h:211:7: note: 'std::filesystem::perm_options::add' declared here
  211 |       add       = 0x2,
      |       ^~~
0_0_38713014_23787.cpp: In function 'int main()':
0_0_38713014_23787.cpp:153:14: error: too few arguments to function 'void build(long long int, long long int, long long int, long long int, long long int)'
  153 |         build(1,n,1);
      |         ~~~~~^~~~~~~
0_0_38713014_23787.cpp:53:6: note: declared here
   53 | void build(int l,int r,int rt,int x,int val){
      |      ^~~~~


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-12-02 06:28:34, Gzip enabled