0_0_20959780_16911.cpp:13:42: error: stray '#' in program
for(i=n-1,j=m-1;i>=1&&j>=1;i--,j--,t++)
^
0_0_20959780_16911.cpp:13:47: error: stray '#' in program
for(i=n-1,j=m-1;i>=1&&j>=1;i--,j--,t++)
^
0_0_20959780_16911.cpp:17:27: error: stray '#' in program
for(p=i,q=j;p<n;p++,q++)
^
0_0_20959780_16911.cpp:17:32: error: stray '#' in program
for(p=i,q=j;p<n;p++,q++)
^
0_0_20959780_16911.cpp:17:39: error: stray '#' in program
for(p=i,q=j;p<n;p++,q++)
^
0_0_20959780_16911.cpp:17:44: error: stray '#' in program
for(p=i,q=j;p<n;p++,q++)
^
0_0_20959780_16911.cpp:21:49: error: stray '#' in program
p=sum[n-1][m-1]-sum[i][m-1]-sum[n-1][j]+sum[i][j];//正方形中部分的和
^
0_0_20959780_16911.cpp:22:32: error: stray '#' in program
if(abs(t*t-2*p)<=1)ans++;
^
0_0_20959780_16911.cpp:22:37: error: stray '#' in program
if(abs(t*t-2*p)<=1)ans++;
^
0_0_20959780_16911.cpp:35:24: error: stray '#' in program
for(i=1;i<=n;i++)
^
0_0_20959780_16911.cpp:35:29: error: stray '#' in program
for(i=1;i<=n;i++)
^
0_0_20959780_16911.cpp:37:28: error: stray '#' in program
for(j=1;j<=m;j++)
^
0_0_20959780_16911.cpp:37:33: error: stray '#' in program
for(j=1;j<=m;j++)
^
0_0_20959780_16911.cpp:40:39: error: stray '#' in program
sum[i][j]=sum[i-1][j]+sum[i][j-1]-sum[i-1][j-1]+e[i][j];//计算以(0,0)和(i,j)为端点的矩阵和
^
0_0_20959780_16911.cpp:40:69: error: stray '#' in program
sum[i][j]=sum[i-1][j]+sum[i][j-1]-sum[i-1][j-1]+e[i][j];//计算以(0,0)和(i,j)为端点的矩阵和
^
0_0_20959780_16911.cpp:43:24: error: stray '#' in program
for(i=2;i<=n;i++)
^
0_0_20959780_16911.cpp:43:29: error: stray '#' in program
for(i=2;i<=n;i++)
^
0_0_20959780_16911.cpp:44:28: error: stray '#' in program
for(j=2;j<=m;j++)
^
0_0_20959780_16911.cpp:44:33: error: stray '#' in program
for(j=2;j<=m;j++)
^
0_0_20959780_16911.cpp:45:21: error: stray '#' in program
ans+=find(i,j);
^
0_0_20959780_16911.cpp: In function 'int find(int, int)':
0_0_20959780_16911.cpp:13:45: error: expected ')' before ';' token
for(i=n-1,j=m-1;i>=1&&j>=1;i--,j--,t++)
^
0_0_20959780_16911.cpp:13:48: error: lvalue required as unary '&' operand
for(i=n-1,j=m-1;i>=1&&j>=1;i--,j--,t++)
^
0_0_20959780_16911.cpp:13:51: error: expected primary-expression before ')' token
for(i=n-1,j=m-1;i>=1&&j>=1;i--,j--,t++)
^
0_0_20959780_16911.cpp: In function 'int main()':
0_0_20959780_16911.cpp:35:27: error: expected ')' before ';' token
for(i=1;i<=n;i++)
^
0_0_20959780_16911.cpp:35:30: error: lvalue required as unary '&' operand
for(i=1;i<=n;i++)
^
0_0_20959780_16911.cpp:35:33: error: expected primary-expression before ')' token
for(i=1;i<=n;i++)
^
0_0_20959780_16911.cpp:43:27: error: expected ')' before ';' token
for(i=2;i<=n;i++)
^
0_0_20959780_16911.cpp:43:30: error: lvalue required as unary '&' operand
for(i=2;i<=n;i++)
^
0_0_20959780_16911.cpp:43:33: error: expected primary-expression before ')' token
for(i=2;i<=n;i++)
^
0_0_20959780_16911.cpp:44:34: error: lvalue required as unary '&' operand
for(j=2;j<=m;j++)
^
0_0_20959780_16911.cpp:44:37: error: expected primary-expression before ')' token
for(j=2;j<=m;j++)
^
0_0_20959780_16911.cpp:45:25: error: expected primary-expression before '=' token
ans+=find(i,j);
^
|