F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_20989301_18573.cpp:18:20: error: stray '#' in program
   for(int i=0;i<n;++i){
                    ^
0_0_20989301_18573.cpp:18:25: error: stray '#' in program
   for(int i=0;i<n;++i){
                         ^
0_0_20989301_18573.cpp:19:21: error: stray '#' in program
    for(int j=0;j<n;++j)scanf("%d",&s[i][j]);
                     ^
0_0_20989301_18573.cpp:19:26: error: stray '#' in program
    for(int j=0;j<n;++j)scanf("%d",&s[i][j]);
                          ^
0_0_20989301_18573.cpp:22:22: error: stray '#' in program
   for(int i=0;i<n/2;++i){//从第i行开始的四边形 
                      ^
0_0_20989301_18573.cpp:22:27: error: stray '#' in program
   for(int i=0;i<n/2;++i){//从第i行开始的四边形 
                           ^
0_0_20989301_18573.cpp:24:28: error: stray '#' in program
    for(int j=0;j<=n-2*i-2;++j){//分别计算顺时针旋转j(逆时针旋转n-2*i-1-j次)次后左上角,左下角,右上角,右下角相加的和 
                            ^
0_0_20989301_18573.cpp:24:33: error: stray '#' in program
    for(int j=0;j<=n-2*i-2;++j){//分别计算顺时针旋转j(逆时针旋转n-2*i-1-j次)次后左上角,左下角,右上角,右下角相加的和 
                                 ^
0_0_20989301_18573.cpp:25:12: error: stray '#' in program
     if(s[i+j][i]+s[n-1-i][i+j]+s[i][n-1-i-j]+s[n-1-i-j][n-1-i]>temp){
            ^
0_0_20989301_18573.cpp:25:22: error: stray '#' in program
     if(s[i+j][i]+s[n-1-i][i+j]+s[i][n-1-i-j]+s[n-1-i-j][n-1-i]>temp){
                      ^
0_0_20989301_18573.cpp:25:37: error: stray '#' in program
     if(s[i+j][i]+s[n-1-i][i+j]+s[i][n-1-i-j]+s[n-1-i-j][n-1-i]>temp){
                                     ^
0_0_20989301_18573.cpp:25:44: error: stray '#' in program
     if(s[i+j][i]+s[n-1-i][i+j]+s[i][n-1-i-j]+s[n-1-i-j][n-1-i]>temp){
                                            ^
0_0_20989301_18573.cpp:25:62: error: stray '#' in program
     if(s[i+j][i]+s[n-1-i][i+j]+s[i][n-1-i-j]+s[n-1-i-j][n-1-i]>temp){
                                                              ^
0_0_20989301_18573.cpp:26:15: error: stray '#' in program
      temp=s[i+j][i]+s[n-1-i][i+j]+s[i][n-1-i-j]+s[n-1-i-j][n-1-i];
               ^
0_0_20989301_18573.cpp:26:25: error: stray '#' in program
      temp=s[i+j][i]+s[n-1-i][i+j]+s[i][n-1-i-j]+s[n-1-i-j][n-1-i];
                         ^
0_0_20989301_18573.cpp:26:40: error: stray '#' in program
      temp=s[i+j][i]+s[n-1-i][i+j]+s[i][n-1-i-j]+s[n-1-i-j][n-1-i];
                                        ^
0_0_20989301_18573.cpp:26:47: error: stray '#' in program
      temp=s[i+j][i]+s[n-1-i][i+j]+s[i][n-1-i-j]+s[n-1-i-j][n-1-i];
                                               ^
0_0_20989301_18573.cpp:26:65: error: stray '#' in program
      temp=s[i+j][i]+s[n-1-i][i+j]+s[i][n-1-i-j]+s[n-1-i-j][n-1-i];
                                                                 ^
0_0_20989301_18573.cpp:30:8: error: stray '#' in program
    sum+=temp;
        ^
0_0_20989301_18573.cpp:31:8: error: stray '#' in program
    num+=min(k,n-2*i-1-k);
        ^
0_0_20989301_18573.cpp:33:13: error: stray '#' in program
   cout<<sum+s[n/2][n/2]<<' '<<num<<endl;
             ^
0_0_20989301_18573.cpp: In function 'int main()':
0_0_20989301_18573.cpp:18:21: error: lvalue required as unary '&' operand
   for(int i=0;i<n;++i){
                     ^
0_0_20989301_18573.cpp:18:23: error: expected ')' before ';' token
   for(int i=0;i<n;++i){
                       ^
0_0_20989301_18573.cpp:18:26: error: lvalue required as unary '&' operand
   for(int i=0;i<n;++i){
                          ^
0_0_20989301_18573.cpp:18:29: error: 'i' was not declared in this scope
   for(int i=0;i<n;++i){
                             ^
0_0_20989301_18573.cpp:22:23: error: lvalue required as unary '&' operand
   for(int i=0;i<n/2;++i){//从第i行开始的四边形 
                       ^
0_0_20989301_18573.cpp:22:25: error: expected ')' before ';' token
   for(int i=0;i<n/2;++i){//从第i行开始的四边形 
                         ^
0_0_20989301_18573.cpp:22:28: error: lvalue required as unary '&' operand
   for(int i=0;i<n/2;++i){//从第i行开始的四边形 
                            ^
0_0_20989301_18573.cpp:22:32: error: expected ';' before ')' token
   for(int i=0;i<n/2;++i){//从第i行开始的四边形 
                                ^
0_0_20989301_18573.cpp:36:1: error: expected '}' at end of input
 }
 ^
0_0_20989301_18573.cpp:36:1: error: expected '}' at end of input


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-26 12:10:13, Gzip enabled