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_34764880_27408.cpp: In function 'int main()':
0_0_34764880_27408.cpp:10:12: error: 'b' was not declared in this scope
     memset(b,0,sizeof(b));
            ^
0_0_34764880_27408.cpp:11:16: error: aggregate 'main()::cow u' has incomplete type and cannot be defined
     struct cow u;
                ^
0_0_34764880_27408.cpp:28:24: error: aggregate 'main()::cow v' has incomplete type and cannot be defined
             struct cow v;
                        ^
0_0_34764880_27408.cpp:36:24: error: aggregate 'main()::cow v' has incomplete type and cannot be defined
             struct cow v;
                        ^
0_0_34764880_27408.cpp:44:24: error: aggregate 'main()::cow v' has incomplete type and cannot be defined
             struct cow v;
                        ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_34764880_27408.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h: In instantiation of 'void std::deque<_Tp, _Alloc>::_M_destroy_data(std::deque<_Tp, _Alloc>::iterator, std::deque<_Tp, _Alloc>::iterator, const std::allocator<_CharT>&) [with _Tp = main()::cow; _Alloc = std::allocator<main()::cow>; std::deque<_Tp, _Alloc>::iterator = std::_Deque_iterator<main()::cow, main()::cow&, main()::cow*>]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:923:62:   required from 'std::deque<_Tp, _Alloc>::~deque() [with _Tp = main()::cow; _Alloc = std::allocator<main()::cow>]'
0_0_34764880_27408.cpp:15:16:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:1918:2: error: invalid use of incomplete type 'std::deque<main()::cow, std::allocator<main()::cow> >::value_type {aka struct main()::cow}'
  if (!__has_trivial_destructor(value_type))
  ^
0_0_34764880_27408.cpp:11:12: error: forward declaration of 'std::deque<main()::cow, std::allocator<main()::cow> >::value_type {aka struct main()::cow}'
     struct cow u;
            ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_34764880_27408.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h: In instantiation of 'void std::deque<_Tp, _Alloc>::pop_front() [with _Tp = main()::cow; _Alloc = std::allocator<main()::cow>]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:244:2:   required from 'void std::queue<_Tp, _Sequence>::pop() [with _Tp = main()::cow; _Sequence = std::deque<main()::cow, std::allocator<main()::cow> >]'
0_0_34764880_27408.cpp:20:15:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:1432:40: error: invalid use of incomplete type 'struct main()::cow'
      != this->_M_impl._M_start._M_last - 1)
                                        ^
0_0_34764880_27408.cpp:11:12: error: forward declaration of 'struct main()::cow'
     struct cow u;
            ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_34764880_27408.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:1435:6: error: cannot increment a pointer to incomplete type 'main()::cow'
      ++this->_M_impl._M_start._M_cur;
      ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h: In instantiation of 'void std::_Deque_base<_Tp, _Alloc>::_M_initialize_map(std::size_t) [with _Tp = main()::cow; _Alloc = std::allocator<main()::cow>; std::size_t = long long unsigned int]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:458:28:   required from 'std::_Deque_base<_Tp, _Alloc>::_Deque_base() [with _Tp = main()::cow; _Alloc = std::allocator<main()::cow>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:788:23:   required from 'std::deque<_Tp, _Alloc>::deque() [with _Tp = main()::cow; _Alloc = std::allocator<main()::cow>]'
0_0_34764880_27408.cpp:15:16:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:589:74: error: invalid application of 'sizeof' to incomplete type 'main()::cow'
       const size_t __num_nodes = (__num_elements/ __deque_buf_size(sizeof(_Tp))
                                                                          ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:620:31: error: invalid application of 'sizeof' to incomplete type 'main()::cow'
      % __deque_buf_size(sizeof(_Tp)));
                               ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h: In instantiation of 'void std::_Deque_base<_Tp, _Alloc>::_M_deallocate_node(_Tp*) [with _Tp = main()::cow; _Alloc = std::allocator<main()::cow>]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:647:25:   required from 'void std::_Deque_base<_Tp, _Alloc>::_M_destroy_nodes(_Tp**, _Tp**) [with _Tp = main()::cow; _Alloc = std::allocator<main()::cow>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:571:42:   required from 'std::_Deque_base<_Tp, _Alloc>::~_Deque_base() [with _Tp = main()::cow; _Alloc = std::allocator<main()::cow>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:788:23:   required from 'std::deque<_Tp, _Alloc>::deque() [with _Tp = main()::cow; _Alloc = std::allocator<main()::cow>]'
0_0_34764880_27408.cpp:15:16:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:544:65: error: invalid application of 'sizeof' to incomplete type 'main()::cow'
  _M_impl._Tp_alloc_type::deallocate(__p, __deque_buf_size(sizeof(_Tp)));
                                                                 ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/c++allocator.h:33:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/allocator.h:46,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_34764880_27408.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/new_allocator.h: At global scope:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/new_allocator.h:124:9: error: 'void __gnu_cxx::new_allocator<_Tp>::destroy(_Up*) [with _Up = main()::cow; _Tp = main()::cow]', declared using local type 'main()::cow', is used but never defined [-fpermissive]
         destroy(_Up* __p) { __p->~_Up(); }
         ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:64:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
                 from 0_0_34764880_27408.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:548:7: error: '_Tp** std::_Deque_base<_Tp, _Alloc>::_M_allocate_map(std::size_t) [with _Tp = main()::cow; _Alloc = std::allocator<main()::cow>; std::size_t = long long unsigned int]', declared using local type 'main()::cow', is used but never defined [-fpermissive]
       _M_allocate_map(size_t __n)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:625:5: error: 'void std::_Deque_base<_Tp, _Alloc>::_M_create_nodes(_Tp**, _Tp**) [with _Tp = main()::cow; _Alloc = std::allocator<main()::cow>]', declared using local type 'main()::cow', is used but never defined [-fpermissive]
     _Deque_base<_Tp, _Alloc>::
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:238:7: error: 'void std::_Deque_iterator<_Tp, _Ref, _Ptr>::_M_set_node(std::_Deque_iterator<_Tp, _Ref, _Ptr>::_Map_pointer) [with _Tp = main()::cow; _Ref = main()::cow&; _Ptr = main()::cow*; std::_Deque_iterator<_Tp, _Ref, _Ptr>::_Map_pointer = main()::cow**]', declared using local type 'main()::cow', is used but never defined [-fpermissive]
       _M_set_node(_Map_pointer __new_node) _GLIBCXX_NOEXCEPT
       ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-01-10 17:40:49, Gzip enabled