Compile Error

/in/foo.cc:42:11: error: redefinition of 'const int mod'
 const int mod=10;
           ^~~
/in/foo.cc:7:11: note: 'const int mod' previously defined here
 const int mod=10;
           ^~~
/in/foo.cc:43:10: error: redefinition of 'int a [107]'
 int a[107],b[107],dp[107][207],s[107];
          ^
/in/foo.cc:8:5: note: 'int a [107]' previously declared here
 int a[107],b[107],dp[107][207],s[107];
     ^
/in/foo.cc:43:17: error: redefinition of 'int b [107]'
 int a[107],b[107],dp[107][207],s[107];
                 ^
/in/foo.cc:8:12: note: 'int b [107]' previously declared here
 int a[107],b[107],dp[107][207],s[107];
            ^
/in/foo.cc:43:30: error: redefinition of 'int dp [107][207]'
 int a[107],b[107],dp[107][207],s[107];
                              ^
/in/foo.cc:8:19: note: 'int dp [107][207]' previously declared here
 int a[107],b[107],dp[107][207],s[107];
                   ^~
/in/foo.cc:43:37: error: redefinition of 'int s [107]'
 int a[107],b[107],dp[107][207],s[107];
                                     ^
/in/foo.cc:8:32: note: 'int s [107]' previously declared here
 int a[107],b[107],dp[107][207],s[107];
                                ^
/in/foo.cc: In function 'int dj(int, int)':
/in/foo.cc:44:5: error: redefinition of 'int dj(int, int)'
 int dj(int l,int r)
     ^~
/in/foo.cc:9:5: note: 'int dj(int, int)' previously defined here
 int dj(int l,int r)
     ^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:48:5: error: redefinition of 'int main()'
 int main()
     ^~~~
/in/foo.cc:13:5: note: 'int main()' previously defined here
 int main()
     ^~~~

信息

递交者
类型
自测
语言
C++
递交时间
2025-03-07 17:53:39
评测时间
2025-03-07 17:53:39
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes