/ Vijos /

记录详情

Compile Error

/in/foo.cc:13:30: warning: '-std=c++11' is not an option that controls warnings [-Wpragmas]
 #pragma GCC diagnostic error "-std=c++11"
                              ^~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:75:17: error: 'ed' was not declared in this scope
    int hNum=sum[ed]-sum[st-1],jNum=len-hNum;
                 ^~
/in/foo.cc:76:11: error: 'jNum' was not declared in this scope
    if(abs(jNum-hNum)<=d||jNum==len||hNum==len)
           ^~~~
/in/foo.cc: At global scope:
/in/foo.cc:86:5: error: redefinition of 'int n'
 int n,d,a[M],sum[M],dp[M][M];
     ^
/in/foo.cc:61:5: note: 'int n' previously declared here
 int n,d,a[M],sum[M],dp[M][M];
     ^
/in/foo.cc:86:7: error: redefinition of 'int d'
 int n,d,a[M],sum[M],dp[M][M];
       ^
/in/foo.cc:61:7: note: 'int d' previously declared here
 int n,d,a[M],sum[M],dp[M][M];
       ^
/in/foo.cc:86:12: error: redefinition of 'int a [2505]'
 int n,d,a[M],sum[M],dp[M][M];
            ^
/in/foo.cc:61:9: note: 'int a [2505]' previously declared here
 int n,d,a[M],sum[M],dp[M][M];
         ^
/in/foo.cc:86:19: error: redefinition of 'int sum [2505]'
 int n,d,a[M],sum[M],dp[M][M];
                   ^
/in/foo.cc:61:14: note: 'int sum [2505]' previously declared here
 int n,d,a[M],sum[M],dp[M][M];
              ^~~
/in/foo.cc:86:28: error: redefinition of 'int dp [2505][2505]'
 int n,d,a[M],sum[M],dp[M][M];
                            ^
/in/foo.cc:61:21: note: 'int dp [2505][2505]' previously declared here
 int n,d,a[M],sum[M],dp[M][M];
                     ^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:87:5: error: redefinition of 'int main()'
 int main(){
     ^~~~
/in/foo.cc:62:5: note: 'int main()' previously defined here
 int main(){
     ^~~~

信息

递交者
类型
递交
题目
P1331 看球的巴士
语言
C++
递交时间
2024-04-24 16:42:47
评测时间
2024-04-24 16:42:49
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes