Submission #54458


ソースコード

ステータス

項目 データ
問題 1072 - セグメントツリー技術基礎
ユーザー名 ei1903
投稿日時 2019-09-08 10:34:10
言語 C++14
状態 Compile Error
得点 0
ソースコード長 5630 Byte
最大実行時間 -
最大メモリ使用量

コンパイルメッセージ

In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/cassert:44,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:33,
                 from ./Main.cpp:134:
/usr/include/assert.h:69:13: error: conflicting declaration of C function ‘void __assert_fail(const char*, const char*, long long unsigned int, const char*)’
 extern void __assert_fail (__const char *__assertion, __const char *__file,
             ^~~~~~~~~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/cassert:44,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:33,
                 from ./Main.cpp:3:
/usr/include/assert.h:69:13: note: previous declaration ‘void __assert_fail(const char*, const char*, unsigned int, const char*)’
 extern void __assert_fail (__const char *__assertion, __const char *__file,
             ^~~~~~~~~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/cassert:44,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:33,
                 from ./Main.cpp:134:
/usr/include/assert.h:74:13: error: conflicting declaration of C function ‘void __assert_perror_fail(long long int, const char*, long long unsigned int, const char*)’
 extern void __assert_perror_fail (int __errnum, __const char *__file,
             ^~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/cassert:44,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:33,
                 from ./Main.cpp:3:
/usr/include/assert.h:74:13: note: previous declaration ‘void __assert_perror_fail(int, const char*, unsigned int, const char*)’
 extern void __assert_perror_fail (int __errnum, __const char *__file,
             ^~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/cassert:44,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:33,
                 from ./Main.cpp:134:
/usr/include/assert.h:82:13: error: conflicting declaration of C function ‘void __assert(const char*, const char*, long long int)’
 extern void __assert (const char *__assertion, const char *__file, int __line)
             ^~~~~~~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/cassert:44,
                 from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:33,
                 from ./Main.cpp:3:
/usr/include/assert.h:82:13: note: previous declaration ‘void __assert(const char*, const char*, int)’
 extern void __assert (const char *__assertion, const char *__file, int __line)
             ^~~~~~~~
./Main.cpp:144:15: error: redefinition of ‘constexpr const long long int INF’
 constexpr int INF  = 0x3f3f3f3f;
               ^~~
./Main.cpp:13:15: note: ‘constexpr const long long int INF’ previously defined here
 constexpr int INF  = 0x3f3f3f3f;
               ^~~
./Main.cpp:145:21: error: redefinition of ‘constexpr const long long int LINF’
 constexpr long long LINF = 0x3f3f3f3f3f3f3f3fLL;
                     ^~~~
./Main.cpp:14:21: note: ‘constexpr const long long int LINF’ previously defined here
 constexpr long long LINF = 0x3f3f3f3f3f3f3f3fLL;
                     ^~~~
./Main.cpp:146:21: error: redefinition of ‘constexpr const long long int MOD’
 constexpr long long MOD = 1000000007;
                     ^~~
./Main.cpp:15:21: note: ‘constexpr const long long int MOD’ previously defined here
 constexpr long long MOD = 1000000007;
                     ^~~
./Main.cpp:148:5: error: redefinition of ‘long long int gcd(long long int, long long int)’
 int gcd(int a,int b){return b ? gcd(b,a%b) : a;}
     ^~~
./Main.cpp:17:5: note: ‘long long int gcd(long long int, long long int)’ previously defined here
 int gcd(int a,int b){return b ? gcd(b,a%b) : a;}
     ^~~
./Main.cpp:149:5: error: redefinition of ‘long long int lcm(long long int, long long int)’
 int lcm(int a,int b){return a/gcd(a,b)*b;}
     ^~~
./Main.cpp:18:5: note: ‘long long int lcm(long long int, long long int)’ previously defined here
 int lcm(int a,int b){return a/gcd(a,b)*b;}
     ^~~
./Main.cpp:151:13: error: redefinition of ‘std::vector<long long int> values’
 vector<int> values;
             ^~~~~~
./Main.cpp:20:13: note: ‘std::vector<long long int> values’ previously declared here
 vector<int> values;
             ^~~~~~
./Main.cpp:152:13: error: redefinition of ‘std::vector<long long int> valuem’
 vector<int> valuem;
             ^~~~~~
./Main.cpp:21:13: note: ‘std::vector<long long int> valuem’ previously declared here
 vector<int> valuem;
             ^~~~~~
./Main.cpp:153:13: error: redefinition of ‘std::vector<long long int> valued’
 vector<int> valued;
             ^~~~~~
./Main.cpp:22:13: note: ‘std::vector<long long int> valued’ previously declared here
 vector<int> valued;
             ^~~~~~
./Main.cpp:154:5: error: redefinition of ‘long long int N’
 int N;
     ^
./Main.cpp:23:5: note: ‘long long int N’ previously declared here
 int N;
     ^
./Main.cpp:156:6: error: redefinition of ‘void updates(long long int, long long int)’
 void updates(int i,int x){
      ^~~~~~~
./Main.cpp:25:6: note: ‘void updates(long long int, long long int)’ previously defined here
 void updates(int i,int x){
      ^~~~~~~
./Main.cpp:165:5: error: redefinition of ‘long long int getsum(long long int, long long int, long long int, long long int, long long int)’
 int getsum(int a,int b,int k,int l,int r){
     ^~~~~~
./Main.cpp:34:5: note: ‘long long int getsum(long long int, long long int, long long int, long long int, long long int)’ previously defined here
 int getsum(int a,int b,int k,int l,int r){
     ^~~~~~
./Main.cpp:175:6: error: redefinition of ‘void updatem(long long int, long long int)’
 void updatem(int i,int x){
      ^~~~~~~
./Main.cpp:44:6: note: ‘void updatem(long long int, long long int)’ previously defined here
 void updatem(int i,int x){
      ^~~~~~~
./Main.cpp:184:5: error: redefinition of ‘long long int getmin(long long int, long long int, long long int, long long int, long long int)’
 int getmin(int a,int b,int k,int l,int r){
     ^~~~~~
./Main.cpp:53:5: note: ‘long long int getmin(long long int, long long int, long long int, long long int, long long int)’ previously defined here
 int getmin(int a,int b,int k,int l,int r){
     ^~~~~~
./Main.cpp:194:6: error: redefinition of ‘void updated(long long int, long long int)’
 void updated(int i,int x){
      ^~~~~~~
./Main.cpp:63:6: note: ‘void updated(long long int, long long int)’ previously defined here
 void updated(int i,int x){
      ^~~~~~~
./Main.cpp:203:5: error: redefinition of ‘long long int getmax(long long int, long long int, long long int, long long int, long long int)’
 int getmax(int a,int b,int k,int l,int r){
     ^~~~~~
./Main.cpp:72:5: note: ‘long long int getmax(long long int, long long int, long long int, long long int, long long int)’ previously defined here
 int getmax(int a,int b,int k,int l,int r){
     ^~~~~~
./Main.cpp:213:8: error: redefinition of ‘int main()’
 signed main(){
        ^~~~
./Main.cpp:82:8: note: ‘int main()’ previously defined here
 signed main(){
        ^~~~

セット

セット 得点 Cases

テストケース

ファイル名 状態 実行時間 メモリ使用量 #