QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#575651#9220. Bus Analysisucup-team3641Compile Error//C++146.4kb2024-09-19 16:05:242024-09-19 16:05:29

詳細信息

answer.code:139:11: error: redefinition of ‘const long long int inf’
  139 | const int inf=(sizeof(int)==4?0x3f3f3f3f:0x3f3f3f3f3f3f3f3f);
      |           ^~~
answer.code:27:11: note: ‘const long long int inf’ previously defined here
   27 | const int inf=(sizeof(int)==4?0x3f3f3f3f:0x3f3f3f3f3f3f3f3f);
      |           ^~~
answer.code:140:11: error: redefinition of ‘const long long int mod’
  140 | const int mod=1e9+7;
      |           ^~~
answer.code:28:11: note: ‘const long long int mod’ previously defined here
   28 | const int mod=1e9+7;
      |           ^~~
answer.code:141:19: error: redefinition of ‘const long double EPS’
  141 | const long double EPS=1e-7;
      |                   ^~~
answer.code:29:19: note: ‘const long double EPS’ previously defined here
   29 | const long double EPS=1e-7;
      |                   ^~~
answer.code:142:11: error: redefinition of ‘const long long int maxn’
  142 | const int maxn=1502;
      |           ^~~~
answer.code:30:11: note: ‘const long long int maxn’ previously defined here
   30 | const int maxn=1502;
      |           ^~~~
answer.code:143:5: error: redefinition of ‘long long int gcd(long long int, long long int)’
  143 | int gcd(int a,int b){
      |     ^~~
answer.code:31:5: note: ‘long long int gcd(long long int, long long int)’ previously defined here
   31 | int gcd(int a,int b){
      |     ^~~
answer.code:149:26: error: redefinition of ‘template<class T> void chkmin(T&, const T&)’
  149 | template<typename T>void chkmin(T& x,const T& y){return y<x?(x=y,void()):void();}
      |                          ^~~~~~
answer.code:37:26: note: ‘template<class T> void chkmin(T&, const T&)’ previously declared here
   37 | template<typename T>void chkmin(T& x,const T& y){return y<x?(x=y,void()):void();}
      |                          ^~~~~~
answer.code:150:26: error: redefinition of ‘template<class T> void chkmax(T&, const T&)’
  150 | template<typename T>void chkmax(T& x,const T& y){return x<y?(x=y,void()):void();}
      |                          ^~~~~~
answer.code:38:26: note: ‘template<class T> void chkmax(T&, const T&)’ previously declared here
   38 | template<typename T>void chkmax(T& x,const T& y){return x<y?(x=y,void()):void();}
      |                          ^~~~~~
answer.code:151:6: error: redefinition of ‘bool Mbe’
  151 | bool Mbe;
      |      ^~~
answer.code:39:6: note: ‘bool Mbe’ previously declared here
   39 | bool Mbe;
      |      ^~~
answer.code:152:6: error: redefinition of ‘void inc(long long int&, long long int)’
  152 | void inc(int &x,int y){ x=(x+y>=mod?x+y-mod:x+y);}
      |      ^~~
answer.code:40:6: note: ‘void inc(long long int&, long long int)’ previously defined here
   40 | void inc(int &x,int y){ x=(x+y>=mod?x+y-mod:x+y);}
      |      ^~~
answer.code:153:6: error: redefinition of ‘void dec(long long int&, long long int)’
  153 | void dec(int &x,int y){ x=(x-y<0?x-y+mod:x-y);}
      |      ^~~
answer.code:41:6: note: ‘void dec(long long int&, long long int)’ previously defined here
   41 | void dec(int &x,int y){ x=(x-y<0?x-y+mod:x-y);}
      |      ^~~
answer.code:154:5: error: redefinition of ‘long long int mul(std::vector<long long int>)’
  154 | int mul(vint vec){int ans=1;for(auto x:vec)     ans*=x,ans%=mod;return ans;}
      |     ^~~
answer.code:42:5: note: ‘long long int mul(std::vector<long long int>)’ previously defined here
   42 | int mul(vint vec){int ans=1;for(auto x:vec)     ans*=x,ans%=mod;return ans;}
      |     ^~~
answer.code:156:5: error: redefinition of ‘long long int fac [1502]’
  156 | int fac[maxn],finv[maxn];
      |     ^~~
answer.code:44:5: note: ‘long long int fac [1502]’ previously declared here
   44 | int fac[maxn],finv[maxn];
      |     ^~~
answer.code:156:15: error: redefinition of ‘long long int finv [1502]’
  156 | int fac[maxn],finv[maxn];
      |               ^~~~
answer.code:44:15: note: ‘long long int finv [1502]’ previously declared here
   44 | int fac[maxn],finv[maxn];
      |               ^~~~
answer.code:157:4: error: redefinition of ‘long long int fpow(long long int, long long int)’
  157 | ll fpow(ll x,int y){
      |    ^~~~
answer.code:45:4: note: ‘long long int fpow(long long int, long long int)’ previously defined here
   45 | ll fpow(ll x,int y){
      |    ^~~~
answer.code:161:6: error: redefinition of ‘long long int inv(long long int)’
  161 | }int inv(int x){        return fpow(x,mod-2);}
      |      ^~~
answer.code:49:6: note: ‘long long int inv(long long int)’ previously defined here
   49 | }int inv(int x){        return fpow(x,mod-2);}
      |      ^~~
answer.code:162:6: error: redefinition of ‘void init(long long int)’
  162 | void init(int n){
      |      ^~~~
answer.code:50:6: note: ‘void init(long long int)’ previously defined here
   50 | void init(int n){
      |      ^~~~
answer.code:168:6: error: redefinition of ‘long long int C(long long int, long long int)’
  168 | }int C(int n,int m){
      |      ^
answer.code:56:6: note: ‘long long int C(long l...