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_39177466_22604.cpp:12:2: error: 'typedef struct time time' redeclared as different kind of entity
   12 | }time;
      |  ^~~~
In file included from gcc-13.1.0/x86_64-w64-mingw32/include/pthread.h:69,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/x86_64-w64-mingw32/bits/gthr-default.h:35,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/x86_64-w64-mingw32/bits/gthr.h:148,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ext/atomicity.h:35,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ios_base.h:39,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ios:44,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ostream:40,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:41,
                 from 0_0_39177466_22604.cpp:1:
gcc-13.1.0/x86_64-w64-mingw32/include/time.h:256:34: note: previous declaration 'time_t time(time_t*)'
  256 | static __inline time_t __CRTDECL time(time_t *_Time) { return _time64(_Time); }
      |                                  ^~~~
0_0_39177466_22604.cpp:14:16: error: 'bi1' was not declared in this scope
   14 | bool cmp(time &bi1, time &bi2)    /*比较函数,用于排序*/
      |                ^~~
0_0_39177466_22604.cpp:14:27: error: 'bi2' was not declared in this scope
   14 | bool cmp(time &bi1, time &bi2)    /*比较函数,用于排序*/
      |                           ^~~
0_0_39177466_22604.cpp:14:30: error: expression list treated as compound expression in initializer [-fpermissive]
   14 | bool cmp(time &bi1, time &bi2)    /*比较函数,用于排序*/
      |                              ^
0_0_39177466_22604.cpp: In function 'int main()':
0_0_39177466_22604.cpp:33:13: error: expected ';' before 'stu'
   33 |         time stu[SIZE];
      |             ^~~~
      |             ;
0_0_39177466_22604.cpp:34:13: error: expected ';' before 'sortArr'
   34 |         time sortArr[4][SIZE];
      |             ^~~~~~~~
      |             ;
0_0_39177466_22604.cpp:41:32: error: 'stu' was not declared in this scope; did you mean 'std'?
   41 |                         cin >> stu[i].solved;
      |                                ^~~
      |                                std
0_0_39177466_22604.cpp:54:33: error: 'sortArr' was not declared in this scope
   54 |                                 sortArr[0][p] = stu[i];
      |                                 ^~~~~~~
0_0_39177466_22604.cpp:59:33: error: 'sortArr' was not declared in this scope
   59 |                                 sortArr[1][q] = stu[i];
      |                                 ^~~~~~~
0_0_39177466_22604.cpp:64:33: error: 'sortArr' was not declared in this scope
   64 |                                 sortArr[2][r] = stu[i];
      |                                 ^~~~~~~
0_0_39177466_22604.cpp:69:33: error: 'sortArr' was not declared in this scope
   69 |                                 sortArr[3][k] = stu[i];
      |                                 ^~~~~~~
0_0_39177466_22604.cpp:80:31: error: 'sortArr' was not declared in this scope
   80 |                         sort (sortArr[0], sortArr[0] + p, cmp);  /*先排序,按照耗时从小到大排序*/
      |                               ^~~~~~~
0_0_39177466_22604.cpp:83:33: error: 'stu' was not declared in this scope; did you mean 'std'?
   83 |                                 stu[sortArr[0][i].located].soc = 95;
      |                                 ^~~
      |                                 std
0_0_39177466_22604.cpp:87:33: error: 'stu' was not declared in this scope; did you mean 'std'?
   87 |                                 stu[sortArr[0][i].located].soc = 90;
      |                                 ^~~
      |                                 std
0_0_39177466_22604.cpp:93:31: error: 'sortArr' was not declared in this scope
   93 |                         sort (sortArr[1], sortArr[1] + q, cmp);
      |                               ^~~~~~~
0_0_39177466_22604.cpp:96:33: error: 'stu' was not declared in this scope; did you mean 'std'?
   96 |                                 stu[sortArr[1][i].located].soc = 85;
      |                                 ^~~
      |                                 std
0_0_39177466_22604.cpp:100:33: error: 'stu' was not declared in this scope; did you mean 'std'?
  100 |                                 stu[sortArr[1][i].located].soc = 80;
      |                                 ^~~
      |                                 std
0_0_39177466_22604.cpp:106:31: error: 'sortArr' was not declared in this scope
  106 |                         sort (sortArr[2], sortArr[2] + r, cmp);
      |                               ^~~~~~~
0_0_39177466_22604.cpp:109:33: error: 'stu' was not declared in this scope; did you mean 'std'?
  109 |                                 stu[sortArr[2][i].located].soc = 75;
      |                                 ^~~
      |                                 std
0_0_39177466_22604.cpp:113:33: error: 'stu' was not declared in this scope; did you mean 'std'?
  113 |                                 stu[sortArr[2][i].located].soc = 70;
      |                                 ^~~
      |                                 std
0_0_39177466_22604.cpp:119:31: error: 'sortArr' was not declared in this scope
  119 |                         sort (sortArr[3], sortArr[3] + k, cmp);
      |                               ^~~~~~~
0_0_39177466_22604.cpp:122:33: error: 'stu' was not declared in this scope; did you mean 'std'?
  122 |                                 stu[sortArr[3][i].located].soc = 65;
      |                                 ^~~
      |                                 std
0_0_39177466_22604.cpp:126:33: error: 'stu' was not declared in this scope; did you mean 'std'?
  126 |                                 stu[sortArr[3][i].located].soc = 60;
      |                                 ^~~
      |                                 std
0_0_39177466_22604.cpp:132:33: error: 'stu' was not declared in this scope; did you mean 'std'?
  132 |                         cout << stu[i].soc << endl;
      |                                 ^~~
      |                                 std


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-22 22:14:24, Gzip enabled