Detalii evaluare #305940

Rezumat problemă

Se dă lista muchiilor unui graf neorientat. Să se afișeze matricea de adiacență a grafului.

Detalii

Problema Adiacenta Operații I/O adiacenta.in/adiacenta.out
Limita timp 0.1 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #305940 Utilizator serban alexandra (alexandraserban97)
Fișier adiacenta.cpp Dimensiune 408 B
Data încărcării 25 Ianuarie 2015, 14:09 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

adiacenta.cpp:2:1: error: stray ‘\342’ in program
 ‪#‎include‬ <iostream>

 ^
adiacenta.cpp:2:1: error: stray ‘\200’ in program
adiacenta.cpp:2:1: error: stray ‘\252’ in program
adiacenta.cpp:2:4: error: stray ‘#’ in program
 ‪#‎include‬ <iostream>

    ^
adiacenta.cpp:2:1: error: stray ‘\342’ in program
 ‪#‎include‬ <iostream>

 ^
adiacenta.cpp:2:1: error: stray ‘\200’ in program
adiacenta.cpp:2:1: error: stray ‘\216’ in program
adiacenta.cpp:2:1: error: stray ‘\342’ in program
adiacenta.cpp:2:1: error: stray ‘\200’ in program
adiacenta.cpp:2:1: error: stray ‘\254’ in program
adiacenta.cpp:1:1: error: ‘adiacenta’ does not name a type
 adiacenta

 ^
In file included from /usr/include/c++/4.8/iosfwd:40:0,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/bits/postypes.h:98:11: error: ‘ptrdiff_t’ does not name a type
   typedef ptrdiff_t streamsize; // Signed integral type
           ^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:65:0,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/bits/stl_iterator_base_types.h:116:67: error: expected type-specifier before ‘ptrdiff_t’
   template<typename _Category, typename _Tp, typename _Distance = ptrdiff_t,
                                                                   ^
/usr/include/c++/4.8/bits/stl_iterator_base_types.h:116:67: error: expected ‘>’ before ‘ptrdiff_t’
/usr/include/c++/4.8/bits/stl_iterator_base_types.h:127:15: error: ‘_Pointer’ does not name a type
       typedef _Pointer   pointer;
               ^
/usr/include/c++/4.8/bits/stl_iterator_base_types.h:129:15: error: ‘_Reference’ does not name a type
       typedef _Reference reference;
               ^
/usr/include/c++/4.8/bits/stl_iterator_base_types.h:179:15: error: ‘ptrdiff_t’ does not name a type
       typedef ptrdiff_t                   difference_type;
               ^
/usr/include/c++/4.8/bits/stl_iterator_base_types.h:190:15: error: ‘ptrdiff_t’ does not name a type
       typedef ptrdiff_t                   difference_type;
               ^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/bits/stl_iterator.h:101:69: error: wrong number of template arguments (5, should be 3)
                       typename iterator_traits<_Iterator>::reference>
                                                                     ^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:65:0,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/bits/stl_iterator_base_types.h:118:12: error: provided for ‘template<class _Category, class _Tp, class _Distance> struct std::iterator’
     struct iterator
            ^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/bits/stl_iterator.h:403:66: error: wrong number of template arguments (5, should be 3)
     : public iterator<output_iterator_tag, void, void, void, void>
                                                                  ^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:65:0,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/bits/stl_iterator_base_types.h:118:12: error: provided for ‘template<class _Category, class _Tp, class _Distance> struct std::iterator’
     struct iterator
            ^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/bits/stl_iterator.h:494:66: error: wrong number of template arguments (5, should be 3)
     : public iterator<output_iterator_tag, void, void, void, void>
                                                                  ^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:65:0,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/bits/stl_iterator_base_types.h:118:12: error: provided for ‘template<class _Category, class _Tp, class _Distance> struct std::iterator’
     struct iterator
            ^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/bits/stl_iterator.h:588:66: error: wrong number of template arguments (5, should be 3)
     : public iterator<output_iterator_tag, void, void, void, void>
                                                                  ^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:65:0,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/bits/stl_iterator_base_types.h:118:12: error: provided for ‘template<class _Category, class _Tp, class _Distance> struct std::iterator’
     struct iterator
            ^
In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/bits/stl_algobase.h: In static member function ‘static _Tp* std::__copy_move<_IsMove, true, std::random_access_iterator_tag>::__copy_m(const _Tp*, const _Tp*, _Tp*)’:
/usr/include/c++/4.8/bits/stl_algobase.h:370:10: error: ‘ptrdiff_t’ does not name a type
    const ptrdiff_t _Num = __last - __first;
          ^
/usr/include/c++/4.8/bits/stl_algobase.h:371:8: error: ‘_Num’ was not declared in this scope
    if (_Num)
        ^
/usr/include/c++/4.8/bits/stl_algobase.h:373:22: error: ‘_Num’ was not declared in this scope
    return __result + _Num;
                      ^
/usr/include/c++/4.8/bits/stl_algobase.h: In static member function ‘static _Tp* std::__copy_move_backward<_IsMove, true, std::random_access_iterator_tag>::__copy_move_b(const _Tp*, const _Tp*, _Tp*)’:
/usr/include/c++/4.8/bits/stl_algobase.h:565:10: error: ‘ptrdiff_t’ does not name a type
    const ptrdiff_t _Num = __last - __first;
          ^
/usr/include/c++/4.8/bits/stl_algobase.h:566:8: error: ‘_Num’ was not declared in this scope
    if (_Num)
        ^
/usr/include/c++/4.8/bits/stl_algobase.h:568:22: error: ‘_Num’ was not declared in this scope
    return __result - _Num;
                      ^
In file included from /usr/include/c++/4.8/ios:40:0,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/bits/char_traits.h: At global scope:
/usr/include/c++/4.8/bits/char_traits.h:104:66: error: ‘std::size_t’ has not been declared
       compare(const char_type* __s1, const char_type* __s2, std::size_t __n);
                                                                  ^
/usr/include/c++/4.8/bits/char_traits.h:106:14: error: ‘size_t’ in namespace ‘std’ does not name a type
       static std::size_t
              ^
/usr/include/c++/4.8/bits/char_traits.h:110:39: error: ‘std::size_t’ has not been declared
       find(const char_type* __s, std::size_t __n, const char_type& __a);
                                       ^
/usr/include/c++/4.8/bits/char_traits.h:113:57: error: ‘std::size_t’ has not been declared
       move(char_type* __s1, const char_type* __s2, std::size_t __n);
                                                         ^
/usr/include/c++/4.8/bits/char_traits.h:116:57: error: ‘std::size_t’ has not been declared
       copy(char_type* __s1, const char_type* __s2, std::size_t __n);
                                                         ^
/usr/include/c++/4.8/bits/char_traits.h:119:35: error: ‘std::size_t’ has not been declared
       assign(char_type* __s, std::size_t __n, char_type __a);
                                   ^
/usr/include/c++/4.8/bits/char_traits.h:145:64: error: ‘std::size_t’ has not been declared
     compare(const char_type* __s1, const char_type* __s2, std::size_t __n)
                                                                ^
/usr/include/c++/4.8/bits/char_traits.h: In static member function ‘static int __gnu_cxx::char_traits<_CharT>::compare(const char_type*, const char_type*, int)’:
/usr/include/c++/4.8/bits/char_traits.h:147:12: error: ‘size_t’ is not a member of ‘std’
       for (std::size_t __i = 0; __i < __n; ++__i)
            ^
/usr/include/c++/4.8/bits/char_traits.h:147:12: note: suggested alternative:
In file included from /usr/include/wchar.h:51:0,
                 from /usr/include/c++/4.8/cwchar:44,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/lib/gcc/i686-linux-gnu/4.8/include/stddef.h:212:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^
In file included from /usr/include/c++/4.8/ios:40:0,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/bits/char_traits.h:147:24: error: expected ‘;’ before ‘__i’
       for (std::size_t __i = 0; __i < __n; ++__i)
                        ^
/usr/include/c++/4.8/bits/char_traits.h:147:33: error: ‘__i’ was not declared in this scope
       for (std::size_t __i = 0; __i < __n; ++__i)
                                 ^
/usr/include/c++/4.8/bits/char_traits.h: At global scope:
/usr/include/c++/4.8/bits/char_traits.h:156:5: error: ‘size_t’ in namespace ‘std’ does not name a type
     std::size_t
     ^
/usr/include/c++/4.8/bits/char_traits.h:169:37: error: ‘std::size_t’ has not been declared
     find(const char_type* __s, std::size_t __n, const char_type& __a)
                                     ^
/usr/include/c++/4.8/bits/char_traits.h: In static member function ‘static const char_type* __gnu_cxx::char_traits<_CharT>::find(const char_type*, int, const char_type&)’:
/usr/include/c++/4.8/bits/char_traits.h:171:12: error: ‘size_t’ is not a member of ‘std’
       for (std::size_t __i = 0; __i < __n; ++__i)
            ^
/usr/include/c++/4.8/bits/char_traits.h:171:12: note: suggested alternative:
In file included from /usr/include/wchar.h:51:0,
                 from /usr/include/c++/4.8/cwchar:44,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/lib/gcc/i686-linux-gnu/4.8/include/stddef.h:212:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^
In file included from /usr/include/c++/4.8/ios:40:0,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/bits/char_traits.h:171:24: error: expected ‘;’ before ‘__i’
       for (std::size_t __i = 0; __i < __n; ++__i)
                        ^
/usr/include/c++/4.8/bits/char_traits.h:171:33: error: ‘__i’ was not declared in this scope
       for (std::size_t __i = 0; __i < __n; ++__i)
                                 ^
/usr/include/c++/4.8/bits/char_traits.h: At global scope:
/usr/include/c++/4.8/bits/char_traits.h:180:55: error: ‘std::size_t’ has not been declared
     move(char_type* __s1, const char_type* __s2, std::size_t __n)
                                                       ^
/usr/include/c++/4.8/bits/char_traits.h:189:55: error: ‘std::size_t’ has not been declared
     copy(char_type* __s1, const char_type* __s2, std::size_t __n)
                                                       ^
/usr/include/c++/4.8/bits/char_traits.h:199:33: error: ‘std::size_t’ has not been declared
     assign(char_type* __s, std::size_t __n, char_type __a)
                                 ^
In file included from /usr/include/c++/4.8/ext/new_allocator.h:33:0,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/c++allocator.h:33,
                 from /usr/include/c++/4.8/bits/allocator.h:46,
                 from /usr/include/c++/4.8/string:41,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/new:91:31: error: declaration of ‘operator new’ as non-function
 void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
                               ^
/usr/include/c++/4.8/new:91:20: error: ‘size_t’ is not a member of ‘std’
 void* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)
                    ^
/usr/include/c++/4.8/new:91:20: note: suggested alternative:
In file included from /usr/include/wchar.h:51:0,
                 from /usr/include/c++/4.8/cwchar:44,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/lib/gcc/i686-linux-gnu/4.8/include/stddef.h:212:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^
In file included from /usr/include/c++/4.8/ext/new_allocator.h:33:0,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/c++allocator.h:33,
                 from /usr/include/c++/4.8/bits/allocator.h:46,
                 from /usr/include/c++/4.8/string:41,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/new:93:33: error: declaration of ‘operator new []’ as non-function
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
                                 ^
/usr/include/c++/4.8/new:93:22: error: ‘size_t’ is not a member of ‘std’
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
                      ^
/usr/include/c++/4.8/new:93:22: note: suggested alternative:
In file included from /usr/include/wchar.h:51:0,
                 from /usr/include/c++/4.8/cwchar:44,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/lib/gcc/i686-linux-gnu/4.8/include/stddef.h:212:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^
In file included from /usr/include/c++/4.8/ext/new_allocator.h:33:0,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/c++allocator.h:33,
                 from /usr/include/c++/4.8/bits/allocator.h:46,
                 from /usr/include/c++/4.8/string:41,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/new:99:25: error: declaration of ‘operator new’ as non-function
 void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
                         ^
/usr/include/c++/4.8/new:99:20: error: ‘size_t’ is not a member of ‘std’
 void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
                    ^
/usr/include/c++/4.8/new:99:20: note: suggested alternative:
In file included from /usr/include/wchar.h:51:0,
                 from /usr/include/c++/4.8/cwchar:44,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/lib/gcc/i686-linux-gnu/4.8/include/stddef.h:212:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^
In file included from /usr/include/c++/4.8/ext/new_allocator.h:33:0,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/c++allocator.h:33,
                 from /usr/include/c++/4.8/bits/allocator.h:46,
                 from /usr/include/c++/4.8/string:41,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/new:99:33: error: expected primary-expression before ‘const’
 void* operator new(std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
                                 ^
/usr/include/c++/4.8/new:101:27: error: declaration of ‘operator new []’ as non-function
 void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
                           ^
/usr/include/c++/4.8/new:101:22: error: ‘size_t’ is not a member of ‘std’
 void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
                      ^
/usr/include/c++/4.8/new:101:22: note: suggested alternative:
In file included from /usr/include/wchar.h:51:0,
                 from /usr/include/c++/4.8/cwchar:44,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/lib/gcc/i686-linux-gnu/4.8/include/stddef.h:212:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^
In file included from /usr/include/c++/4.8/ext/new_allocator.h:33:0,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/c++allocator.h:33,
                 from /usr/include/c++/4.8/bits/allocator.h:46,
                 from /usr/include/c++/4.8/string:41,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/new:101:35: error: expected primary-expression before ‘const’
 void* operator new[](std::size_t, const std::nothrow_t&) _GLIBCXX_USE_NOEXCEPT
                                   ^
/usr/include/c++/4.8/new:109:32: error: declaration of ‘operator new’ as non-function
 inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
                                ^
/usr/include/c++/4.8/new:109:27: error: ‘size_t’ is not a member of ‘std’
 inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
                           ^
/usr/include/c++/4.8/new:109:27: note: suggested alternative:
In file included from /usr/include/wchar.h:51:0,
                 from /usr/include/c++/4.8/cwchar:44,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/lib/gcc/i686-linux-gnu/4.8/include/stddef.h:212:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^
In file included from /usr/include/c++/4.8/ext/new_allocator.h:33:0,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/c++allocator.h:33,
                 from /usr/include/c++/4.8/bits/allocator.h:46,
                 from /usr/include/c++/4.8/string:41,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/new:109:40: error: expected primary-expression before ‘void’
 inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
                                        ^
/usr/include/c++/4.8/new:111:34: error: declaration of ‘operator new []’ as non-function
 inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
                                  ^
/usr/include/c++/4.8/new:111:29: error: ‘size_t’ is not a member of ‘std’
 inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
                             ^
/usr/include/c++/4.8/new:111:29: note: suggested alternative:
In file included from /usr/include/wchar.h:51:0,
                 from /usr/include/c++/4.8/cwchar:44,
                 from /usr/include/c++/4.8/bits/postypes.h:40,
                 from /usr/include/c++/4.8/iosfwd:40,
                 from /usr/include/c++/4.8/ios:38,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/lib/gcc/i686-linux-gnu/4.8/include/stddef.h:212:23: note:   ‘size_t’
 typedef __SIZE_TYPE__ size_t;
                       ^
In file included from /usr/include/c++/4.8/ext/new_allocator.h:33:0,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/c++allocator.h:33,
                 from /usr/include/c++/4.8/bits/allocator.h:46,
                 from /usr/include/c++/4.8/string:41,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/new:111:42: error: expected primary-expression before ‘void’
 inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
                                          ^
In file included from /usr/include/i386-linux-gnu/c++/4.8/bits/c++allocator.h:33:0,
                 from /usr/include/c++/4.8/bits/allocator.h:46,
                 from /usr/include/c++/4.8/string:41,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/ext/new_allocator.h:44:14: error: ‘std::size_t’ has not been declared
   using std::size_t;
              ^
/usr/include/c++/4.8/ext/new_allocator.h:45:14: error: ‘std::ptrdiff_t’ has not been declared
   using std::ptrdiff_t;
              ^
/usr/include/c++/4.8/ext/new_allocator.h:62:15: error: ‘ptrdiff_t’ does not name a type
       typedef ptrdiff_t  difference_type;
               ^
In file included from /usr/include/c++/4.8/string:41:0,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/bits/allocator.h:67:15: error: ‘ptrdiff_t’ does not name a type
       typedef ptrdiff_t   difference_type;
               ^
/usr/include/c++/4.8/bits/allocator.h:96:15: error: ‘ptrdiff_t’ does not name a type
       typedef ptrdiff_t  difference_type;
               ^
In file included from /usr/include/c++/4.8/string:44:0,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/bits/ostream_insert.h:45:26: error: ‘streamsize’ has not been declared
       const _CharT* __s, streamsize __n)
                          ^
/usr/include/c++/4.8/bits/ostream_insert.h: In function ‘void std::__ostream_write(std::basic_ostream<_CharT, _Traits>&, const _CharT*, int)’:
/usr/include/c++/4.8/bits/ostream_insert.h:50:13: error: ‘streamsize’ does not name a type
       const streamsize __put = __out.rdbuf()->sputn(__s, __n);
             ^
/usr/include/c++/4.8/bits/ostream_insert.h:51:11: error: ‘__put’ was not declared in this scope
       if (__put != __n)
           ^
/usr/include/c++/4.8/bits/ostream_insert.h: At global scope:
/usr/include/c++/4.8/bits/ostream_insert.h:57:59: error: ‘streamsize’ has not been declared
     __ostream_fill(basic_ostream<_CharT, _Traits>& __out, streamsize __n)
                                                           ^
/usr/include/c++/4.8/bits/ostream_insert.h:77:27: error: ‘streamsize’ has not been declared
        const _CharT* __s, streamsize __n)
                           ^
/usr/include/c++/4.8/bits/ostream_insert.h: In function ‘std::basic_ostream<_CharT, _Traits>& std::__ostream_insert(std::basic_ostream<_CharT, _Traits>&, const _CharT*, int)’:
/usr/include/c++/4.8/bits/ostream_insert.h:87:14: error: ‘streamsize’ does not name a type
        const streamsize __w = __out.width();
              ^
/usr/include/c++/4.8/bits/ostream_insert.h:88:12: error: ‘__w’ was not declared in this scope
        if (__w > __n)
            ^
/usr/include/c++/4.8/bits/ostream_insert.h: At global scope:
/usr/include/c++/4.8/bits/ostream_insert.h:118:68: error: ‘streamsize’ has not been declared
   extern template ostream& __ostream_insert(ostream&, const char*, streamsize);
                                                                    ^
/usr/include/c++/4.8/bits/ostream_insert.h:122:11: error: ‘streamsize’ has not been declared
           streamsize);
           ^
In file included from /usr/include/c++/4.8/string:53:0,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/bits/basic_string.tcc: In function ‘std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::basic_string<_CharT, _Traits, _Alloc>&)’:
/usr/include/c++/4.8/bits/basic_string.tcc:1018:14: error: ‘streamsize’ does not name a type
        const streamsize __w = __in.width();
              ^
/usr/include/c++/4.8/bits/basic_string.tcc:1019:32: error: ‘__w’ was not declared in this scope
        const __size_type __n = __w > 0 ? static_cast<__size_type>(__w)
                                ^
In file included from /usr/include/c++/4.8/string:52:0,
                 from /usr/include/c++/4.8/bits/locale_classes.h:40,
                 from /usr/include/c++/4.8/bits/ios_base.h:41,
                 from /usr/include/c++/4.8/ios:42,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/bits/basic_string.h: In instantiation of ‘class std::basic_string<char>’:
/usr/include/c++/4.8/bits/basic_string.tcc:1132:25:   required from here
/usr/include/c++/4.8/bits/basic_string.h:122:61: error: no type named ‘difference_type’ in ‘std::basic_string<char>::_CharT_alloc_type {aka class std::allocator<char>}’
       typedef typename _CharT_alloc_type::difference_type   difference_type;
                                                             ^
/usr/include/c++/4.8/bits/basic_string.h: In instantiation of ‘class std::basic_string<wchar_t>’:
/usr/include/c++/4.8/bits/basic_string.tcc:1147:25:   required from here
/usr/include/c++/4.8/bits/basic_string.h:122:61: error: no type named ‘difference_type’ in ‘std::basic_string<wchar_t>::_CharT_alloc_type {aka class std::allocator<wchar_t>}’
In file included from /usr/include/c++/4.8/ios:42:0,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/bits/ios_base.h: At global scope:
/usr/include/c++/4.8/bits/ios_base.h:452:5: error: ‘streamsize’ does not name a type
     streamsize  _M_precision;
     ^
/usr/include/c++/4.8/bits/ios_base.h:453:5: error: ‘streamsize’ does not name a type
     streamsize  _M_width;
     ^
/usr/include/c++/4.8/bits/ios_base.h:620:5: error: ‘streamsize’ does not name a type
     streamsize
     ^
/usr/include/c++/4.8/bits/ios_base.h:629:5: error: ‘streamsize’ does not name a type
     streamsize
     ^
/usr/include/c++/4.8/bits/ios_base.h:643:5: error: ‘streamsize’ does not name a type
     streamsize
     ^
/usr/include/c++/4.8/bits/ios_base.h:652:5: error: ‘streamsize’ does not name a type
     streamsize
     ^
In file included from /usr/include/c++/4.8/ios:43:0,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/streambuf:50:5: error: ‘streamsize’ does not name a type
     streamsize
     ^
/usr/include/c++/4.8/streambuf:147:14: error: ‘streamsize’ does not name a type
       friend streamsize
              ^
/usr/include/c++/4.8/streambuf:239:33: error: ‘streamsize’ has not been declared
       pubsetbuf(char_type* __s, streamsize __n) 
                                 ^
/usr/include/c++/4.8/streambuf:283:7: error: ‘streamsize’ does not name a type
       streamsize 
       ^
/usr/include/c++/4.8/streambuf:356:7: error: ‘streamsize’ does not name a type
       streamsize 
       ^
/usr/include/c++/4.8/streambuf:449:7: error: ‘streamsize’ does not name a type
       streamsize 
       ^
/usr/include/c++/4.8/streambuf:591:26: error: ‘streamsize’ has not been declared
       setbuf(char_type*, streamsize)
                          ^
/usr/include/c++/4.8/streambuf:648:15: error: ‘streamsize’ does not name a type
       virtual streamsize 
               ^
/usr/include/c++/4.8/streambuf:664:15: error: ‘streamsize’ does not name a type
       virtual streamsize 
               ^
/usr/include/c++/4.8/streambuf:741:15: error: ‘streamsize’ does not name a type
       virtual streamsize 
               ^
/usr/include/c++/4.8/streambuf:794:20: error: ‘streamsize’ has not been declared
       __safe_gbump(streamsize __n) { _M_in_cur += __n; }
                    ^
/usr/include/c++/4.8/streambuf:797:20: error: ‘streamsize’ has not been declared
       __safe_pbump(streamsize __n) { _M_out_cur += __n; }
                    ^
/usr/include/c++/4.8/streambuf:815:5: error: ‘streamsize’ does not name a type
     streamsize
     ^
/usr/include/c++/4.8/streambuf:820:5: error: ‘streamsize’ does not name a type
     streamsize
     ^
In file included from /usr/include/c++/4.8/streambuf:828:0,
                 from /usr/include/c++/4.8/ios:43,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/bits/streambuf.tcc:44:5: error: ‘streamsize’ does not name a type
     streamsize
     ^
/usr/include/c++/4.8/bits/streambuf.tcc:78:5: error: ‘streamsize’ does not name a type
     streamsize
     ^
/usr/include/c++/4.8/bits/streambuf.tcc:115:5: error: ‘streamsize’ does not name a type
     streamsize
     ^
/usr/include/c++/4.8/bits/streambuf.tcc:138:12: error: ‘streamsize’ does not name a type
     inline streamsize
            ^
/usr/include/c++/4.8/bits/streambuf.tcc:151:5: error: explicit instantiation of non-template ‘int std::streamsize’
     streamsize
     ^
/usr/include/c++/4.8/bits/streambuf.tcc:152:5: error: expected ‘;’ before ‘__copy_streambufs’
     __copy_streambufs(basic_streambuf<char>*,
     ^
/usr/include/c++/4.8/bits/streambuf.tcc:155:5: error: explicit instantiation of non-template ‘int std::streamsize’
     streamsize
     ^
/usr/include/c++/4.8/bits/streambuf.tcc:156:5: error: expected ‘;’ before ‘__copy_streambufs_eof’
     __copy_streambufs_eof(basic_streambuf<char>*,
     ^
/usr/include/c++/4.8/bits/streambuf.tcc:162:5: error: explicit instantiation of non-template ‘int std::streamsize’
     streamsize
     ^
/usr/include/c++/4.8/bits/streambuf.tcc:163:5: error: expected ‘;’ before ‘__copy_streambufs’
     __copy_streambufs(basic_streambuf<wchar_t>*,
     ^
/usr/include/c++/4.8/bits/streambuf.tcc:166:5: error: explicit instantiation of non-template ‘int std::streamsize’
     streamsize
     ^
/usr/include/c++/4.8/bits/streambuf.tcc:167:5: error: expected ‘;’ before ‘__copy_streambufs_eof’
     __copy_streambufs_eof(basic_streambuf<wchar_t>*,
     ^
In file included from /usr/include/c++/4.8/bits/locale_facets.h:48:0,
                 from /usr/include/c++/4.8/bits/basic_ios.h:37,
                 from /usr/include/c++/4.8/ios:44,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/bits/streambuf_iterator.h:57:16: error: wrong number of template arguments (5, should be 3)
         _CharT&>
                ^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:65:0,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/bits/stl_iterator_base_types.h:118:12: error: provided for ‘template<class _Category, class _Tp, class _Distance> struct std::iterator’
     struct iterator
            ^
In file included from /usr/include/c++/4.8/bits/locale_facets.h:48:0,
                 from /usr/include/c++/4.8/bits/basic_ios.h:37,
                 from /usr/include/c++/4.8/ios:44,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/bits/streambuf_iterator.h:217:66: error: wrong number of template arguments (5, should be 3)
     : public iterator<output_iterator_tag, void, void, void, void>
                                                                  ^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:65:0,
                 from /usr/include/c++/4.8/bits/char_traits.h:39,
                 from /usr/include/c++/4.8/ios:40,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/bits/stl_iterator_base_types.h:118:12: error: provided for ‘template<class _Category, class _Tp, class _Distance> struct std::iterator’
     struct iterator
            ^
In file included from /usr/include/c++/4.8/bits/locale_facets.h:48:0,
                 from /usr/include/c++/4.8/bits/basic_ios.h:37,
                 from /usr/include/c++/4.8/ios:44,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/bits/streambuf_iterator.h:279:34: error: ‘streamsize’ has not been declared
       _M_put(const _CharT* __ws, streamsize __len)
                                  ^
/usr/include/c++/4.8/bits/streambuf_iterator.h: In function ‘typename __gnu_cxx::__enable_if<std::__is_char<_CharT>::__value, std::ostreambuf_iterator<_CharT, std::char_traits<_CharT> > >::__type std::__copy_move_a2(_CharT*, _CharT*, std::ostreambuf_iterator<_CharT, std::char_traits<_CharT> >)’:
/usr/include/c++/4.8/bits/streambuf_iterator.h:313:13: error: ‘streamsize’ does not name a type
       const streamsize __num = __last - __first;
             ^
/usr/include/c++/4.8/bits/streambuf_iterator.h:314:11: error: ‘__num’ was not declared in this scope
       if (__num > 0)
           ^
/usr/include/c++/4.8/bits/streambuf_iterator.h: In function ‘typename __gnu_cxx::__enable_if<std::__is_char<_CharT>::__value, std::ostreambuf_iterator<_CharT, std::char_traits<_CharT> > >::__type std::__copy_move_a2(const _CharT*, const _CharT*, std::ostreambuf_iterator<_CharT, std::char_traits<_CharT> >)’:
/usr/include/c++/4.8/bits/streambuf_iterator.h:325:13: error: ‘streamsize’ does not name a type
       const streamsize __num = __last - __first;
             ^
/usr/include/c++/4.8/bits/streambuf_iterator.h:326:11: error: ‘__num’ was not declared in this scope
       if (__num > 0)
           ^
/usr/include/c++/4.8/bits/streambuf_iterator.h: In function ‘typename __gnu_cxx::__enable_if<std::__is_char<_CharT>::__value, _CharT*>::__type std::__copy_move_a2(std::istreambuf_iterator<_CharT, std::char_traits<_CharT> >, std::istreambuf_iterator<_CharT, std::char_traits<_CharT> >, _CharT*)’:
/usr/include/c++/4.8/bits/streambuf_iterator.h:348:14: error: ‘streamsize’ does not name a type
        const streamsize __n = __sb->egptr() - __sb->gptr();
              ^
/usr/include/c++/4.8/bits/streambuf_iterator.h:349:12: error: ‘__n’ was not declared in this scope
        if (__n > 1)
            ^
/usr/include/c++/4.8/bits/streambuf_iterator.h: In function ‘typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(std::istreambuf_iterator<_CharT>, std::istreambuf_iterator<_CharT>, const _CharT2&)’:
/usr/include/c++/4.8/bits/streambuf_iterator.h:385:8: error: ‘streamsize’ was not declared in this scope
        streamsize __n = __sb->egptr() - __sb->gptr();
        ^
/usr/include/c++/4.8/bits/streambuf_iterator.h:385:19: error: expected ‘;’ before ‘__n’
        streamsize __n = __sb->egptr() - __sb->gptr();
                   ^
/usr/include/c++/4.8/bits/streambuf_iterator.h:386:12: error: ‘__n’ was not declared in this scope
        if (__n > 1)
            ^
In file included from /usr/include/c++/4.8/bits/basic_ios.h:37:0,
                 from /usr/include/c++/4.8/ios:44,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/bits/locale_facets.h: At global scope:
/usr/include/c++/4.8/bits/locale_facets.h:92:29: error: ‘streamsize’ has not been declared
       const _CharT* __olds, streamsize __newlen, streamsize __oldlen);
                             ^
/usr/include/c++/4.8/bits/locale_facets.h:92:50: error: ‘streamsize’ has not been declared
       const _CharT* __olds, streamsize __newlen, streamsize __oldlen);
                                                  ^
In file included from /usr/include/c++/4.8/bits/basic_ios.h:37:0,
                 from /usr/include/c++/4.8/ios:44,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/bits/locale_facets.h:2449:32: error: ‘streamsize’ has not been declared
       _M_pad(char_type __fill, streamsize __w, ios_base& __io,
                                ^
In file included from /usr/include/c++/4.8/bits/locale_facets.h:2608:0,
                 from /usr/include/c++/4.8/bits/basic_ios.h:37,
                 from /usr/include/c++/4.8/ios:44,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/bits/locale_facets.tcc:775:27: error: ‘streamsize’ has not been declared
     _M_pad(_CharT __fill, streamsize __w, ios_base& __io,
                           ^
/usr/include/c++/4.8/bits/locale_facets.tcc: In member function ‘_OutIter std::num_put<_CharT, _OutIter>::_M_insert_int(_OutIter, std::ios_base&, _CharT, _ValueT) const’:
/usr/include/c++/4.8/bits/locale_facets.tcc:916:8: error: ‘streamsize’ does not name a type
  const streamsize __w = __io.width();
        ^
/usr/include/c++/4.8/bits/locale_facets.tcc:917:6: error: ‘__w’ was not declared in this scope
  if (__w > static_cast<streamsize>(__len))
      ^
/usr/include/c++/4.8/bits/locale_facets.tcc:917:24: error: expected type-specifier before ‘streamsize’
  if (__w > static_cast<streamsize>(__len))
                        ^
/usr/include/c++/4.8/bits/locale_facets.tcc:917:24: error: expected ‘>’ before ‘streamsize’
/usr/include/c++/4.8/bits/locale_facets.tcc:917:24: error: expected ‘(’ before ‘streamsize’
/usr/include/c++/4.8/bits/locale_facets.tcc:917:24: error: ‘streamsize’ was not declared in this scope
/usr/include/c++/4.8/bits/locale_facets.tcc:918:4: error: expected ‘)’ before ‘{’ token
    {
    ^
/usr/include/c++/4.8/bits/locale_facets.tcc: In member function ‘_OutIter std::num_put<_CharT, _OutIter>::_M_insert_float(_OutIter, std::ios_base&, _CharT, char, _ValueT) const’:
/usr/include/c++/4.8/bits/locale_facets.tcc:979:8: error: ‘streamsize’ does not name a type
  const streamsize __prec = __io.precision() < 0 ? 6 : __io.precision();
        ^
/usr/include/c++/4.8/bits/locale_facets.tcc:996:19: error: ‘__prec’ was not declared in this scope
           __fbuf, __prec, __v);
                   ^
/usr/include/c++/4.8/bits/locale_facets.tcc:1054:6: error: ‘streamsize’ was not declared in this scope
      streamsize __off = 0;
      ^
/usr/include/c++/4.8/bits/locale_facets.tcc:1054:17: error: expected ‘;’ before ‘__off’
      streamsize __off = 0;
                 ^
/usr/include/c++/4.8/bits/locale_facets.tcc:1057:3: error: ‘__off’ was not declared in this scope
   __off = 1;
   ^
/usr/include/c++/4.8/bits/locale_facets.tcc:1063:45: error: ‘__off’ was not declared in this scope
       __lc->_M_thousands_sep, __wp, __ws2 + __off,
                                             ^
/usr/include/c++/4.8/bits/locale_facets.tcc:1071:8: error: ‘streamsize’ does not name a type
  const streamsize __w = __io.width();
        ^
/usr/include/c++/4.8/bits/locale_facets.tcc:1072:6: error: ‘__w’ was not declared in this scope
  if (__w > static_cast<streamsize>(__len))
      ^
/usr/include/c++/4.8/bits/locale_facets.tcc:1072:24: error: expected type-specifier before ‘streamsize’
  if (__w > static_cast<streamsize>(__len))
                        ^
/usr/include/c++/4.8/bits/locale_facets.tcc:1072:24: error: expected ‘>’ before ‘streamsize’
/usr/include/c++/4.8/bits/locale_facets.tcc:1072:24: error: expected ‘(’ before ‘streamsize’
/usr/include/c++/4.8/bits/locale_facets.tcc:1072:24: error: ‘streamsize’ was not declared in this scope
/usr/include/c++/4.8/bits/locale_facets.tcc:1073:4: error: expected ‘)’ before ‘{’ token
    {
    ^
/usr/include/c++/4.8/bits/locale_facets.tcc: In member function ‘virtual _OutIter std::num_put<_CharT, _OutIter>::do_put(std::num_put<_CharT, _OutIter>::iter_type, std::ios_base&, std::num_put<_CharT, _OutIter>::char_type, bool) const’:
/usr/include/c++/4.8/bits/locale_facets.tcc:1109:10: error: ‘streamsize’ does not name a type
    const streamsize __w = __io.width();
          ^
/usr/include/c++/4.8/bits/locale_facets.tcc:1110:8: error: ‘__w’ was not declared in this scope
    if (__w > static_cast<streamsize>(__len))
        ^
/usr/include/c++/4.8/bits/locale_facets.tcc:1110:26: error: expected type-specifier before ‘streamsize’
    if (__w > static_cast<streamsize>(__len))
                          ^
/usr/include/c++/4.8/bits/locale_facets.tcc:1110:26: error: expected ‘>’ before ‘streamsize’
/usr/include/c++/4.8/bits/locale_facets.tcc:1110:26: error: expected ‘(’ before ‘streamsize’
/usr/include/c++/4.8/bits/locale_facets.tcc:1110:26: error: ‘streamsize’ was not declared in this scope
/usr/include/c++/4.8/bits/locale_facets.tcc:1111:6: error: expected ‘)’ before ‘{’ token
      {
      ^
/usr/include/c++/4.8/bits/locale_facets.tcc: At global scope:
/usr/include/c++/4.8/bits/locale_facets.tcc:1193:8: error: ‘streamsize’ has not been declared
        streamsize __newlen, streamsize __oldlen)
        ^
/usr/include/c++/4.8/bits/locale_facets.tcc:1193:29: error: ‘streamsize’ has not been declared
        streamsize __newlen, streamsize __oldlen)
                             ^
In file included from /usr/include/c++/4.8/istream:39:0,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/ostream:311:38: error: ‘streamsize’ has not been declared
       _M_write(const char_type* __s, streamsize __n)
                                      ^
/usr/include/c++/4.8/ostream:335:35: error: ‘streamsize’ has not been declared
       write(const char_type* __s, streamsize __n);
                                   ^
/usr/include/c++/4.8/ostream: In member function ‘void std::basic_ostream<_CharT, _Traits>::_M_write(const char_type*, int)’:
/usr/include/c++/4.8/ostream:313:8: error: ‘streamsize’ does not name a type
  const streamsize __put = this->rdbuf()->sputn(__s, __n);
        ^
/usr/include/c++/4.8/ostream:314:6: error: ‘__put’ was not declared in this scope
  if (__put != __n)
      ^
/usr/include/c++/4.8/ostream: In function ‘std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const _CharT*)’:
/usr/include/c++/4.8/ostream:519:17: error: expected type-specifier before ‘streamsize’
     static_cast<streamsize>(_Traits::length(__s)));
                 ^
/usr/include/c++/4.8/ostream:519:17: error: expected ‘>’ before ‘streamsize’
/usr/include/c++/4.8/ostream:519:17: error: expected ‘(’ before ‘streamsize’
/usr/include/c++/4.8/ostream:519:17: error: ‘streamsize’ was not declared in this scope
/usr/include/c++/4.8/ostream: In function ‘std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const char*)’:
/usr/include/c++/4.8/ostream:536:17: error: expected type-specifier before ‘streamsize’
     static_cast<streamsize>(_Traits::length(__s)));
                 ^
/usr/include/c++/4.8/ostream:536:17: error: expected ‘>’ before ‘streamsize’
/usr/include/c++/4.8/ostream:536:17: error: expected ‘(’ before ‘streamsize’
/usr/include/c++/4.8/ostream:536:17: error: ‘streamsize’ was not declared in this scope
In file included from /usr/include/c++/4.8/ostream:609:0,
                 from /usr/include/c++/4.8/istream:39,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/bits/ostream.tcc: At global scope:
/usr/include/c++/4.8/bits/ostream.tcc:183:30: error: ‘streamsize’ has not been declared
     write(const _CharT* __s, streamsize __n)
                              ^
In file included from /usr/include/c++/4.8/fstream:38:0,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/istream:82:7: error: ‘streamsize’ does not name a type
       streamsize   _M_gcount;
       ^
/usr/include/c++/4.8/istream:268:7: error: ‘streamsize’ does not name a type
       streamsize
       ^
/usr/include/c++/4.8/istream:343:27: error: ‘streamsize’ has not been declared
       get(char_type* __s, streamsize __n, char_type __delim);
                           ^
/usr/include/c++/4.8/istream:354:27: error: ‘streamsize’ has not been declared
       get(char_type* __s, streamsize __n)
                           ^
/usr/include/c++/4.8/istream:416:31: error: ‘streamsize’ has not been declared
       getline(char_type* __s, streamsize __n, char_type __delim);
                               ^
/usr/include/c++/4.8/istream:427:31: error: ‘streamsize’ has not been declared
       getline(char_type* __s, streamsize __n)
                               ^
/usr/include/c++/4.8/istream:451:7: error: expected ‘;’ at end of member declaration
       ignore(streamsize __n, int_type __delim);
       ^
/usr/include/c++/4.8/istream:451:25: error: expected ‘)’ before ‘__n’
       ignore(streamsize __n, int_type __delim);
                         ^
/usr/include/c++/4.8/istream:454:7: error: expected ‘;’ at end of member declaration
       ignore(streamsize __n);
       ^
/usr/include/c++/4.8/istream:454:14: error: redeclaration of ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::ignore’
       ignore(streamsize __n);
              ^
/usr/include/c++/4.8/istream:451:14: note: previous declaration ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::ignore’
       ignore(streamsize __n, int_type __delim);
              ^
/usr/include/c++/4.8/istream:454:25: error: expected ‘)’ before ‘__n’
       ignore(streamsize __n);
                         ^
/usr/include/c++/4.8/istream:457:14: error: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::ignore()’ conflicts with a previous declaration
       ignore();
              ^
/usr/include/c++/4.8/istream:451:14: note: previous declaration ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::ignore’
       ignore(streamsize __n, int_type __delim);
              ^
/usr/include/c++/4.8/istream:486:28: error: ‘streamsize’ has not been declared
       read(char_type* __s, streamsize __n);
                            ^
/usr/include/c++/4.8/istream:504:7: error: ‘streamsize’ does not name a type
       streamsize
       ^
/usr/include/c++/4.8/istream: In constructor ‘std::basic_istream<_CharT, _Traits>::basic_istream(std::basic_istream<_CharT, _Traits>::__streambuf_type*)’:
/usr/include/c++/4.8/istream:94:9: error: class ‘std::basic_istream<_CharT, _Traits>’ does not have any field named ‘_M_gcount’
       : _M_gcount(streamsize(0))
         ^
/usr/include/c++/4.8/istream:94:31: error: there are no arguments to ‘streamsize’ that depend on a template parameter, so a declaration of ‘streamsize’ must be available [-fpermissive]
       : _M_gcount(streamsize(0))
                               ^
/usr/include/c++/4.8/istream:94:31: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/usr/include/c++/4.8/istream: In destructor ‘virtual std::basic_istream<_CharT, _Traits>::~basic_istream()’:
/usr/include/c++/4.8/istream:104:9: error: ‘_M_gcount’ was not declared in this scope
       { _M_gcount = streamsize(0); }
         ^
/usr/include/c++/4.8/istream:104:33: error: there are no arguments to ‘streamsize’ that depend on a template parameter, so a declaration of ‘streamsize’ must be available [-fpermissive]
       { _M_gcount = streamsize(0); }
                                 ^
/usr/include/c++/4.8/istream: In constructor ‘std::basic_istream<_CharT, _Traits>::basic_istream()’:
/usr/include/c++/4.8/istream:607:9: error: class ‘std::basic_istream<_CharT, _Traits>’ does not have any field named ‘_M_gcount’
       : _M_gcount(streamsize(0))
         ^
/usr/include/c++/4.8/istream:607:31: error: there are no arguments to ‘streamsize’ that depend on a template parameter, so a declaration of ‘streamsize’ must be available [-fpermissive]
       : _M_gcount(streamsize(0))
                               ^
/usr/include/c++/4.8/istream: In instantiation of ‘class std::basic_istream<char>’:
/usr/include/c++/4.8/istream:618:24:   required from here
/usr/include/c++/4.8/istream:451:14: error: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::ignore() [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]’ conflicts with a previous declaration
       ignore(streamsize __n, int_type __delim);
              ^
/usr/include/c++/4.8/istream:451:14: note: previous declaration ‘std::basic_istream<char>::__istream_type& std::basic_istream<char>::ignore’
/usr/include/c++/4.8/istream: At global scope:
/usr/include/c++/4.8/istream:619:29: error: ‘streamsize’ has not been declared
     getline(char_type* __s, streamsize __n, char_type __delim);
                             ^
/usr/include/c++/4.8/istream:624:12: error: ‘std::basic_istream<char>& std::basic_istream<char>::ignore’ is not a static member of ‘class std::basic_istream<char>’
     ignore(streamsize __n);
            ^
/usr/include/c++/4.8/istream:624:12: error: ‘streamsize’ was not declared in this scope
/usr/include/c++/4.8/istream:629:12: error: ‘std::basic_istream<char>& std::basic_istream<char>::ignore’ is not a static member of ‘class std::basic_istream<char>’
     ignore(streamsize __n, int_type __delim);
            ^
/usr/include/c++/4.8/istream:629:12: error: ‘streamsize’ was not declared in this scope
/usr/include/c++/4.8/istream:629:37: error: expected primary-expression before ‘__delim’
     ignore(streamsize __n, int_type __delim);
                                     ^
/usr/include/c++/4.8/istream:629:44: error: expression list treated as compound expression in initializer [-fpermissive]
     ignore(streamsize __n, int_type __delim);
                                            ^
/usr/include/c++/4.8/istream: In instantiation of ‘class std::basic_istream<wchar_t>’:
/usr/include/c++/4.8/istream:634:27:   required from here
/usr/include/c++/4.8/istream:451:14: error: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::ignore() [with _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<wchar_t>]’ conflicts with a previous declaration
       ignore(streamsize __n, int_type __delim);
              ^
/usr/include/c++/4.8/istream:451:14: note: previous declaration ‘std::basic_istream<wchar_t>::__istream_type& std::basic_istream<wchar_t>::ignore’
/usr/include/c++/4.8/istream:635:29: error: ‘streamsize’ has not been declared
     getline(char_type* __s, streamsize __n, char_type __delim);
                             ^
/usr/include/c++/4.8/istream:640:12: error: ‘std::basic_istream<wchar_t>& std::basic_istream<wchar_t>::ignore’ is not a static member of ‘class std::basic_istream<wchar_t>’
     ignore(streamsize __n);
            ^
/usr/include/c++/4.8/istream:640:12: error: ‘streamsize’ was not declared in this scope
/usr/include/c++/4.8/istream:645:12: error: ‘std::basic_istream<wchar_t>& std::basic_istream<wchar_t>::ignore’ is not a static member of ‘class std::basic_istream<wchar_t>’
     ignore(streamsize __n, int_type __delim);
            ^
/usr/include/c++/4.8/istream:645:12: error: ‘streamsize’ was not declared in this scope
/usr/include/c++/4.8/istream:645:37: error: expected primary-expression before ‘__delim’
     ignore(streamsize __n, int_type __delim);
                                     ^
/usr/include/c++/4.8/istream:645:44: error: expression list treated as compound expression in initializer [-fpermissive]
     ignore(streamsize __n, int_type __delim);
                                            ^
In file included from /usr/include/c++/4.8/istream:879:0,
                 from /usr/include/c++/4.8/fstream:38,
                 from adiacenta.cpp:3:
/usr/include/c++/4.8/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>::int_type std::basic_istream<_CharT, _Traits>::get()’:
/usr/include/c++/4.8/bits/istream.tcc:240:7: error: ‘_M_gcount’ was not declared in this scope
       _M_gcount = 0;
       ^
/usr/include/c++/4.8/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::get(std::basic_istream<_CharT, _Traits>::char_type&)’:
/usr/include/c++/4.8/bits/istream.tcc:274:7: error: ‘_M_gcount’ was not declared in this scope
       _M_gcount = 0;
       ^
/usr/include/c++/4.8/bits/istream.tcc: At global scope:
/usr/include/c++/4.8/bits/istream.tcc:309:25: error: ‘streamsize’ has not been declared
     get(char_type* __s, streamsize __n, char_type __delim)
                         ^
/usr/include/c++/4.8/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::get(std::basic_istream<_CharT, _Traits>::char_type*, int, std::basic_istream<_CharT, _Traits>::char_type)’:
/usr/include/c++/4.8/bits/istream.tcc:311:7: error: ‘_M_gcount’ was not declared in this scope
       _M_gcount = 0;
       ^
/usr/include/c++/4.8/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::get(std::basic_istream<_CharT, _Traits>::__streambuf_type&, std::basic_istream<_CharT, _Traits>::char_type)’:
/usr/include/c++/4.8/bits/istream.tcc:358:7: error: ‘_M_gcount’ was not declared in this scope
       _M_gcount = 0;
       ^
/usr/include/c++/4.8/bits/istream.tcc: At global scope:
/usr/include/c++/4.8/bits/istream.tcc:400:29: error: ‘streamsize’ has not been declared
     getline(char_type* __s, streamsize __n, char_type __delim)
                             ^
/usr/include/c++/4.8/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::getline(std::basic_istream<_CharT, _Traits>::char_type*, int, std::basic_istream<_CharT, _Traits>::char_type)’:
/usr/include/c++/4.8/bits/istream.tcc:402:7: error: ‘_M_gcount’ was not declared in this scope
       _M_gcount = 0;
       ^
/usr/include/c++/4.8/bits/istream.tcc: In member function ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore()’:
/usr/include/c++/4.8/bits/istream.tcc:462:7: error: ‘_M_gcount’ was not declared in this scope
       _M_gcount = 0;
       ^
/usr/include/c++/4.8/bits/istream.tcc: At global scope:
/usr/include/c++/4.8/bits/istream.tcc:493:12: error: ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore’ is not a static member of ‘class std::basic_istream<_CharT, _Traits>’
     ignore(streamsize __n)
            ^
/usr/include/c++/4.8/bits/istream.tcc:493:12: error: template definition of non-template ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore’
/usr/include/c++/4.8/bits/istream.tcc:493:12: error: ‘streamsize’ was not declared in this scope
/usr/include/c++/4.8/bits/istream.tcc:555:12: error: ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore’ is not a static member of ‘class std::basic_istream<_CharT, _Traits>’
     ignore(streamsize __n, int_type __delim)
            ^
/usr/include/c++/4.8/bits/istream.tcc:555:12: error: template definition of non-template ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore’
/usr/include/c++/4.8/bits/istream.tcc:555:12: error: ‘streamsize’ was not declared in this scope
/usr/include/c++/4.8/b

Cum funcționează evaluarea?

www.pbinfo.ro permite evaluarea a două tipuri de probleme:

  • probleme la care rezolvarea presupune scrierea unui program complet
  • probleme la care rezolvarea presupune scrierea unei secvențe de program - câteva instrucțiuni, o listă de declarații, una sau mai multe funcții, etc.

Problema Adiacenta face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:

  • Programul sursă este compilat folosind compilatorul corespunzător. Dacă în urma compilării se obțin erori sau avertismente, acestea sunt afișate în această pagină.
  • Dacă programul a fost compilat, executabilul obținut va fi rulat, furnizându-i-se unul sau mai multe seturi de date de intrare, în concordanță cu restricțiile specifice problemei. Pentru fiecare set de date se obține un anumit punctaj, în raport cu corectitudinea soluției tale.

Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.