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_13806104_23161.cpp:10:1: error: expected unqualified-id before '...' token
 ...{
 ^
0_0_13806104_23161.cpp:17:1: error: expected initializer before '...' token
 ...{
 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_13806104_23161.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h: In instantiation of 'std::_Vector_base<_Tp, _Alloc>::~_Vector_base() [with _Tp = student; _Alloc = std::allocator<student>]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:257:15:   required from 'std::vector<_Tp, _Alloc>::vector() [with _Tp = student; _Alloc = std::allocator<student>]'
0_0_13806104_23161.cpp:15:18:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:161:9: error: invalid use of incomplete type 'struct student'
         - this->_M_impl._M_start); }
         ^
0_0_13806104_23161.cpp:9:8: error: forward declaration of 'struct student'
 struct student
        ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tempbuf.h:60:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:62,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_13806104_23161.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_construct.h: In instantiation of 'void std::_Destroy(_ForwardIterator, _ForwardIterator) [with _ForwardIterator = student*]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_construct.h:151:31:   required from 'void std::_Destroy(_ForwardIterator, _ForwardIterator, std::allocator<_T2>&) [with _ForwardIterator = student*; _Tp = student]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:425:30:   required from 'std::vector<_Tp, _Alloc>::~vector() [with _Tp = student; _Alloc = std::allocator<student>]'
0_0_13806104_23161.cpp:15:18:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_construct.h:127:27: error: invalid use of incomplete type '_Value_type {aka struct student}'
  __destroy(__first, __last);
                           ^
0_0_13806104_23161.cpp:9:8: error: forward declaration of '_Value_type {aka struct student}'
 struct student
        ^


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-06-17 05:05:21, Gzip enabled