/ TYWZ /

记录详情

Compile Error

/in/foo.cc:12:16: error: 'int std [20001]' redeclared as different kind of symbol
 };int std[20001];
                ^
<built-in>: note: previous declaration 'namespace std { }'
/in/foo.cc: In function 'int main()':
/in/foo.cc:29:20: error: expected primary-expression before '[' token
   scanf("%s/n",&std[i].xh);
                    ^
/in/foo.cc:31:13: error: expected primary-expression before '[' token
     cin>>std[i].cj[j]; 
             ^
/in/foo.cc:37:7: error: expected primary-expression before '[' token
    std[i].sum+=std[i].cj[j];
       ^
/in/foo.cc:37:19: error: expected primary-expression before '[' token
    std[i].sum+=std[i].cj[j];
                   ^
/in/foo.cc:40:10: error: expected primary-expression before '+' token
  sort(std+1,std+1+n,comp);
          ^
/in/foo.cc:40:16: error: expected primary-expression before '+' token
  sort(std+1,std+1+n,comp);
                ^
/in/foo.cc:43:18: error: expected primary-expression before '[' token
   printf("%s",std[i].xh);
                  ^
/in/foo.cc:46:17: error: expected primary-expression before '[' token
   cout<<" "<<std[i].cj[j]<<" ";   
                 ^
/in/foo.cc:48:18: error: expected primary-expression before '[' token
         cout<<std[i].sum<<endl;
                  ^
/in/foo.cc: In function 'bool comp(st, st)':
/in/foo.cc:23:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

信息

递交者
类型
递交
题目
Report (Simple Ver.)
比赛
2019.1.27 作业
语言
C++
递交时间
2019-01-27 23:07:30
评测时间
2019-01-27 23:07:30
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes