Detalii evaluare #40472993

Rezumat problemă

Se dau două numere naturale i p și o listă cu numere naturale. Să se determine al p-lea element par din listă și al i-lea element impar din listă.

Detalii

Problema ParImpar2 Operații I/O parimpar2.in/parimpar2.out
Limita timp 0.1 secunde Limita memorie Total: 0.1 MB / Stivă 0.1 MB
Id soluție #40472993 Utilizator Vasilache Mihai (Mihai9876)
Fișier parimpar2.cpp Dimensiune 821 B
Data încărcării 09 Decembrie 2022, 22:32 Scor / rezultat Eroare de compilare

Evaluare

Mesaj compilare

In file included from /usr/include/wchar.h:180: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 parimpar2.cpp:2:
/usr/include/xlocale.h:33:29: error: 'long' and 'short' specified together for '__ctype_b'
   const unsigned short int *__ctype_b;
                             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:61: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 parimpar2.cpp:2:
/usr/include/c++/4.8/bits/cpp_type_traits.h:241:12: error: redefinition of 'struct std::__is_integer<long long int>'
     struct __is_integer<long long>
            ^
/usr/include/c++/4.8/bits/cpp_type_traits.h:213:12: error: previous definition of 'struct std::__is_integer<long long int>'
     struct __is_integer<int>
            ^
/usr/include/c++/4.8/bits/cpp_type_traits.h:248:12: error: redefinition of 'struct std::__is_integer<long long unsigned int>'
     struct __is_integer<unsigned long long>
            ^
/usr/include/c++/4.8/bits/cpp_type_traits.h:220:12: error: previous definition of 'struct std::__is_integer<long long unsigned int>'
     struct __is_integer<unsigned int>
            ^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:62: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 parimpar2.cpp:2:
/usr/include/c++/4.8/ext/type_traits.h:93:12: error: redefinition of 'struct __gnu_cxx::__add_unsigned<long long int>'
     struct __add_unsigned<long long>
            ^
/usr/include/c++/4.8/ext/type_traits.h:85:12: error: previous definition of 'struct __gnu_cxx::__add_unsigned<long long int>'
     struct __add_unsigned<int>
            ^
/usr/include/c++/4.8/ext/type_traits.h:136:12: error: redefinition of 'struct __gnu_cxx::__remove_unsigned<long long unsigned int>'
     struct __remove_unsigned<unsigned long long>
            ^
/usr/include/c++/4.8/ext/type_traits.h:128:12: error: previous definition of 'struct __gnu_cxx::__remove_unsigned<long long unsigned int>'
     struct __remove_unsigned<unsigned int>
            ^
In file included from /usr/include/c++/4.8/bits/move.h:57:0,
                 from /usr/include/c++/4.8/bits/stl_pair.h:59,
                 from /usr/include/c++/4.8/bits/stl_algobase.h:64,
                 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 parimpar2.cpp:2:
/usr/include/c++/4.8/type_traits:227:12: error: redefinition of 'struct std::__is_integral_helper<long long int>'
     struct __is_integral_helper<long long>
            ^
/usr/include/c++/4.8/type_traits:211:12: error: previous definition of 'struct std::__is_integral_helper<long long int>'
     struct __is_integral_helper<int>
            ^
/usr/include/c++/4.8/type_traits:231:12: error: redefinition of 'struct std::__is_integral_helper<long long unsigned int>'
     struct __is_integral_helper<unsigned long long>
            ^
/usr/include/c++/4.8/type_traits:215:12: error: previous definition of 'struct std::__is_integral_helper<long long unsigned int>'
     struct __is_integral_helper<unsigned int>
            ^
/usr/include/c++/4.8/type_traits:1482:12: error: redefinition of 'struct std::__make_unsigned<long long int>'
     struct __make_unsigned<long long>
            ^
/usr/include/c++/4.8/type_traits:1474:12: error: previous definition of 'struct std::__make_unsigned<long long int>'
     struct __make_unsigned<int>
            ^
/usr/include/c++/4.8/type_traits:1564:12: error: redefinition of 'struct std::__make_signed<long long unsigned int>'
     struct __make_signed<unsigned long long>
            ^
/usr/include/c++/4.8/type_traits:1556:12: error: previous definition of 'struct std::__make_signed<long long unsigned int>'
     struct __make_signed<unsigned int>
            ^
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 parimpar2.cpp:2:
/usr/include/c++/4.8/bits/stl_algobase.h: In function 'constexpr long long int std::__lg(long long int)':
/usr/include/c++/4.8/bits/stl_algobase.h:996:3: error: redefinition of 'constexpr long long int std::__lg(long long int)'
   __lg(long long __n)
   ^
/usr/include/c++/4.8/bits/stl_algobase.h:980:3: error: 'constexpr long long int std::__lg(long long int)' previously defined here
   __lg(int __n)
   ^
In file included from /usr/lib/gcc/i686-linux-gnu/4.8/include/stdint.h:9:0,
                 from /usr/include/c++/4.8/cstdint:41,
                 from /usr/include/c++/4.8/bits/char_traits.h:376,
                 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 parimpar2.cpp:2:
/usr/include/stdint.h: At global scope:
/usr/include/stdint.h:37:20: error: 'long' and 'short' specified together for 'int16_t'
 typedef short int  int16_t;
                    ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
In file included from /usr/lib/gcc/i686-linux-gnu/4.8/include/stdint.h:9:0,
                 from /usr/include/c++/4.8/cstdint:41,
                 from /usr/include/c++/4.8/bits/char_traits.h:376,
                 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 parimpar2.cpp:2:
/usr/include/stdint.h:49:28: error: 'long' and 'short' specified together for 'uint16_t'
 typedef unsigned short int uint16_t;
                            ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
In file included from /usr/lib/gcc/i686-linux-gnu/4.8/include/stdint.h:9:0,
                 from /usr/include/c++/4.8/cstdint:41,
                 from /usr/include/c++/4.8/bits/char_traits.h:376,
                 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 parimpar2.cpp:2:
/usr/include/stdint.h:66:20: error: 'long' and 'short' specified together for 'int_least16_t'
 typedef short int  int_least16_t;
                    ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
In file included from /usr/lib/gcc/i686-linux-gnu/4.8/include/stdint.h:9:0,
                 from /usr/include/c++/4.8/cstdint:41,
                 from /usr/include/c++/4.8/bits/char_traits.h:376,
                 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 parimpar2.cpp:2:
/usr/include/stdint.h:77:28: error: 'long' and 'short' specified together for 'uint_least16_t'
 typedef unsigned short int uint_least16_t;
                            ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
In file included from /usr/include/ctype.h:26:0,
                 from /usr/include/c++/4.8/cctype:42,
                 from /usr/include/c++/4.8/bits/localefwd.h:42,
                 from /usr/include/c++/4.8/ios:41,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from parimpar2.cpp:2:
/usr/include/i386-linux-gnu/bits/types.h:31:28: error: 'long' and 'short' specified together for '__u_short'
 typedef unsigned short int __u_short;
                            ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
In file included from /usr/include/ctype.h:26:0,
                 from /usr/include/c++/4.8/cctype:42,
                 from /usr/include/c++/4.8/bits/localefwd.h:42,
                 from /usr/include/c++/4.8/ios:41,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from parimpar2.cpp:2:
/usr/include/i386-linux-gnu/bits/types.h:38:26: error: 'long' and 'short' specified together for '__int16_t'
 typedef signed short int __int16_t;
                          ^
/usr/include/i386-linux-gnu/bits/types.h:39:28: error: 'long' and 'short' specified together for '__uint16_t'
 typedef unsigned short int __uint16_t;
                            ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
In file included from /usr/include/c++/4.8/cctype:42:0,
                 from /usr/include/c++/4.8/bits/localefwd.h:42,
                 from /usr/include/c++/4.8/ios:41,
                 from /usr/include/c++/4.8/istream:38,
                 from /usr/include/c++/4.8/fstream:38,
                 from parimpar2.cpp:2:
/usr/include/ctype.h:80:40: error: 'long' and 'short' specified together for '__ctype_b_loc'
      __THROW __attribute__ ((__const__));
                                        ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
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 parimpar2.cpp:2:
/usr/include/c++/4.8/new:92:41: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter [-fpermissive]
   __attribute__((__externally_visible__));
                                         ^
/usr/include/c++/4.8/new:94:41: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter [-fpermissive]
   __attribute__((__externally_visible__));
                                         ^
/usr/include/c++/4.8/new:100:41: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter [-fpermissive]
   __attribute__((__externally_visible__));
                                         ^
/usr/include/c++/4.8/new:102:41: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter [-fpermissive]
   __attribute__((__externally_visible__));
                                         ^
In file included from /usr/include/c++/4.8/iosfwd:38: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 parimpar2.cpp:2:
/usr/include/c++/4.8/new:109:51: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter [-fpermissive]
 inline void* operator new(std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
                                                   ^
/usr/include/c++/4.8/new:111:53: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter [-fpermissive]
 inline void* operator new[](std::size_t, void* __p) _GLIBCXX_USE_NOEXCEPT
                                                     ^
/usr/include/c++/4.8/bits/basic_string.h: In static member function 'static long long int std::basic_string<_CharT, _Traits, _Alloc>::_S_compare(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type)':
parimpar2.cpp:1:13: error: expected primary-expression before 'long'
 #define int long long

             ^
parimpar2.cpp:1:13: error: expected ';' before 'long'
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 parimpar2.cpp:2:
/usr/include/c++/4.8/bits/basic_string.h:416:18: error: conflicting declaration 'long long int __d'
    return int(__d);
                  ^
/usr/include/c++/4.8/bits/basic_string.h:409:24: error: '__d' has a previous declaration as 'const difference_type __d'
  const difference_type __d = difference_type(__n1 - __n2);
                        ^
/usr/include/stdlib.h: At global scope:
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
In file included from /usr/include/stdlib.h:314:0,
                 from /usr/include/c++/4.8/cstdlib:72,
                 from /usr/include/c++/4.8/ext/string_conversions.h:41,
                 from /usr/include/c++/4.8/bits/basic_string.h:2815,
                 from /usr/include/c++/4.8/string:52,
                 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 parimpar2.cpp:2:
/usr/include/i386-linux-gnu/sys/types.h:151:28: error: 'long' and 'short' specified together for 'ushort'
 typedef unsigned short int ushort;
                            ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
In file included from /usr/include/features.h:374:0,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:426,
                 from /usr/include/c++/4.8/iosfwd:38,
                 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 parimpar2.cpp:2:
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
/usr/include/i386-linux-gnu/sys/sysmacros.h: In function 'long long unsigned int gnu_dev_makedev(long long unsigned int, long long unsigned int)':
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
/usr/include/stdlib.h: At global scope:
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
In file included from /usr/include/c++/4.8/cstdlib:72:0,
                 from /usr/include/c++/4.8/ext/string_conversions.h:41,
                 from /usr/include/c++/4.8/bits/basic_string.h:2815,
                 from /usr/include/c++/4.8/string:52,
                 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 parimpar2.cpp:2:
/usr/include/stdlib.h:390:52: error: 'long' and 'short' specified together for '__xsubi'
 extern double erand48 (unsigned short int __xsubi[3]) __THROW __nonnull ((1));
                                                    ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
In file included from /usr/include/c++/4.8/cstdlib:72:0,
                 from /usr/include/c++/4.8/ext/string_conversions.h:41,
                 from /usr/include/c++/4.8/bits/basic_string.h:2815,
                 from /usr/include/c++/4.8/string:52,
                 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 parimpar2.cpp:2:
/usr/include/stdlib.h:394:54: error: 'long' and 'short' specified together for '__xsubi'
 extern long int nrand48 (unsigned short int __xsubi[3])
                                                      ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
In file included from /usr/include/c++/4.8/cstdlib:72:0,
                 from /usr/include/c++/4.8/ext/string_conversions.h:41,
                 from /usr/include/c++/4.8/bits/basic_string.h:2815,
                 from /usr/include/c++/4.8/string:52,
                 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 parimpar2.cpp:2:
/usr/include/stdlib.h:399:54: error: 'long' and 'short' specified together for '__xsubi'
 extern long int jrand48 (unsigned short int __xsubi[3])
                                                      ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
In file included from /usr/include/c++/4.8/cstdlib:72:0,
                 from /usr/include/c++/4.8/ext/string_conversions.h:41,
                 from /usr/include/c++/4.8/bits/basic_string.h:2815,
                 from /usr/include/c++/4.8/string:52,
                 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 parimpar2.cpp:2:
/usr/include/stdlib.h:404:66: error: 'long' and 'short' specified together for '__seed16v'
 extern unsigned short int *seed48 (unsigned short int __seed16v[3])
                                                                  ^
In file included from /usr/include/features.h:374:0,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39,
                 from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:426,
                 from /usr/include/c++/4.8/iosfwd:38,
                 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 parimpar2.cpp:2:
/usr/include/stdlib.h:405:14: error: 'long' and 'short' specified together for 'seed48'
      __THROW __nonnull ((1));
              ^
In file included from /usr/include/c++/4.8/cstdlib:72:0,
                 from /usr/include/c++/4.8/ext/string_conversions.h:41,
                 from /usr/include/c++/4.8/bits/basic_string.h:2815,
                 from /usr/include/c++/4.8/string:52,
                 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 parimpar2.cpp:2:
/usr/include/stdlib.h:406:50: error: 'long' and 'short' specified together for '__param'
 extern void lcong48 (unsigned short int __param[7]) __THROW __nonnull ((1));
                                                  ^
/usr/include/stdlib.h:414:29: error: 'long' and 'short' specified together for '__x'
     unsigned short int __x[3]; /* Current state.  */
                             ^
/usr/include/stdlib.h:415:33: error: 'long' and 'short' specified together for '__old_x'
     unsigned short int __old_x[3]; /* Old state.  */
                                 ^
/usr/include/stdlib.h:416:24: error: 'long' and 'short' specified together for '__c'
     unsigned short int __c; /* Additive const. in congruential formula.  */
                        ^
/usr/include/stdlib.h:417:24: error: 'long' and 'short' specified together for '__init'
     unsigned short int __init; /* Flag for initializing.  */
                        ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
In file included from /usr/include/c++/4.8/cstdlib:72:0,
                 from /usr/include/c++/4.8/ext/string_conversions.h:41,
                 from /usr/include/c++/4.8/bits/basic_string.h:2815,
                 from /usr/include/c++/4.8/string:52,
                 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 parimpar2.cpp:2:
/usr/include/stdlib.h:425:51: error: 'long' and 'short' specified together for '__xsubi'
 extern int erand48_r (unsigned short int __xsubi[3],
                                                   ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
In file included from /usr/include/c++/4.8/cstdlib:72:0,
                 from /usr/include/c++/4.8/ext/string_conversions.h:41,
                 from /usr/include/c++/4.8/bits/basic_string.h:2815,
                 from /usr/include/c++/4.8/string:52,
                 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 parimpar2.cpp:2:
/usr/include/stdlib.h:433:51: error: 'long' and 'short' specified together for '__xsubi'
 extern int nrand48_r (unsigned short int __xsubi[3],
                                                   ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
In file included from /usr/include/c++/4.8/cstdlib:72:0,
                 from /usr/include/c++/4.8/ext/string_conversions.h:41,
                 from /usr/include/c++/4.8/bits/basic_string.h:2815,
                 from /usr/include/c++/4.8/string:52,
                 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 parimpar2.cpp:2:
/usr/include/stdlib.h:442:51: error: 'long' and 'short' specified together for '__xsubi'
 extern int jrand48_r (unsigned short int __xsubi[3],
                                                   ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
In file included from /usr/include/c++/4.8/cstdlib:72:0,
                 from /usr/include/c++/4.8/ext/string_conversions.h:41,
                 from /usr/include/c++/4.8/bits/basic_string.h:2815,
                 from /usr/include/c++/4.8/string:52,
                 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 parimpar2.cpp:2:
/usr/include/stdlib.h:451:52: error: 'long' and 'short' specified together for '__seed16v'
 extern int seed48_r (unsigned short int __seed16v[3],
                                                    ^
/usr/include/stdlib.h:454:51: error: 'long' and 'short' specified together for '__param'
 extern int lcong48_r (unsigned short int __param[7],
                                                   ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:13: error: 'long long long' is too long for GCC
 #define int long long

             ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
In file included from /usr/include/c++/4.8/ext/string_conversions.h:41:0,
                 from /usr/include/c++/4.8/bits/basic_string.h:2815,
                 from /usr/include/c++/4.8/string:52,
                 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 parimpar2.cpp:2:
/usr/include/c++/4.8/cstdlib: In function 'long long int std::abs(long long int)':
/usr/include/c++/4.8/cstdlib:174:20: error: 'long long int std::abs(long long int)' conflicts with previous using declaration 'long long int abs(long long int)'
   abs(long long __x) { return __builtin_llabs (__x); }
                    ^
/usr/include/stdio.h: At global scope:
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
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 parimpar2.cpp:2:
/usr/include/c++/4.8/bits/basic_string.h: In function 'long long int std::stoi(const string&, std::size_t*, long long int)':
/usr/include/c++/4.8/bits/basic_string.h:2825:19: error: no matching function for call to '__stoa(long long int (*)(const char*, char**, long long int)throw (), const char [5], const char*, std::size_t*&, long long int&)'
      __idx, __base); }
                   ^
/usr/include/c++/4.8/bits/basic_string.h:2825:19: note: candidate is:
In file included from /usr/include/c++/4.8/bits/basic_string.h:2815:0,
                 from /usr/include/c++/4.8/string:52,
                 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 parimpar2.cpp:2:
/usr/include/c++/4.8/ext/string_conversions.h:54:5: note: template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...)
     __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
     ^
/usr/include/c++/4.8/ext/string_conversions.h:54:5: note:   template argument deduction/substitution failed:
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 parimpar2.cpp:2:
/usr/include/c++/4.8/bits/basic_string.h:2825:19: note:   mismatched types 'long int' and 'long long int'
      __idx, __base); }
                   ^
/usr/include/c++/4.8/bits/basic_string.h: In function 'std::string std::to_string(long long int)':
/usr/include/c++/4.8/bits/basic_string.h:2886:3: error: redefinition of 'std::string std::to_string(long long int)'
   to_string(long long __val)
   ^
/usr/include/c++/4.8/bits/basic_string.h:2864:3: error: 'std::string std::to_string(long long int)' previously defined here
   to_string(int __val)
   ^
/usr/include/c++/4.8/bits/basic_string.h: In function 'long long int std::stoi(const wstring&, std::size_t*, long long int)':
/usr/include/c++/4.8/bits/basic_string.h:2928:19: error: no matching function for call to '__stoa(long long int (*)(const wchar_t*, wchar_t**, long long int)throw (), const char [5], const wchar_t*, std::size_t*&, long long int&)'
      __idx, __base); }
                   ^
/usr/include/c++/4.8/bits/basic_string.h:2928:19: note: candidate is:
In file included from /usr/include/c++/4.8/bits/basic_string.h:2815:0,
                 from /usr/include/c++/4.8/string:52,
                 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 parimpar2.cpp:2:
/usr/include/c++/4.8/ext/string_conversions.h:54:5: note: template<class _TRet, class _Ret, class _CharT, class ... _Base> _Ret __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...)
     __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...),
     ^
/usr/include/c++/4.8/ext/string_conversions.h:54:5: note:   template argument deduction/substitution failed:
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 parimpar2.cpp:2:
/usr/include/c++/4.8/bits/basic_string.h:2928:19: note:   mismatched types 'long int' and 'long long int'
      __idx, __base); }
                   ^
/usr/include/c++/4.8/bits/basic_string.h: In function 'std::wstring std::to_wstring(long long int)':
/usr/include/c++/4.8/bits/basic_string.h:2987:3: error: redefinition of 'std::wstring std::to_wstring(long long int)'
   to_wstring(long long __val)
   ^
/usr/include/c++/4.8/bits/basic_string.h:2965:3: error: 'std::wstring std::to_wstring(long long int)' previously defined here
   to_wstring(int __val)
   ^
In file included from /usr/include/c++/4.8/bits/basic_string.h:3033:0,
                 from /usr/include/c++/4.8/string:52,
                 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 parimpar2.cpp:2:
/usr/include/c++/4.8/bits/functional_hash.h: At global scope:
/usr/include/c++/4.8/bits/functional_hash.h:110:3: error: redefinition of 'struct std::hash<long long int>'
   _Cxx_hashtable_define_trivial_hash(long long)
   ^
/usr/include/c++/4.8/bits/functional_hash.h:104:3: error: previous definition of 'struct std::hash<long long int>'
   _Cxx_hashtable_define_trivial_hash(int)
   ^
/usr/include/c++/4.8/bits/functional_hash.h:122:3: error: redefinition of 'struct std::hash<long long unsigned int>'
   _Cxx_hashtable_define_trivial_hash(unsigned long long)
   ^
/usr/include/c++/4.8/bits/functional_hash.h:116:3: error: previous definition of 'struct std::hash<long long unsigned int>'
   _Cxx_hashtable_define_trivial_hash(unsigned int)
   ^
parimpar2.cpp:1:18: error: 'long long long' is too long for GCC
 #define int long long

                  ^
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 parimpar2.cpp:2:
/usr/include/c++/4.8/bits/locale_facets.h:2025:7: error: 'std::num_get<_CharT, _InIter>::iter_type std::num_get<_CharT, _InIter>::get(std::num_get<_CharT, _InIter>::iter_type, std::num_get<_CharT, _InIter>::iter_type, std::ios_base&, std::ios_base::iostate&, long long unsigned int&) const' cannot be overloaded
       get(iter_type __in, iter_type __end, ios_base& __io,
       ^
/usr/include/c++/4.8/bits/locale_facets.h:2009:7: error: with 'std::num_get<_CharT, _InIter>::iter_type std::num_get<_CharT, _InIter>::get(std::num_get<_CharT, _InIter>::iter_type, std::num_get<_CharT, _InIter>::iter_type, std::ios_base&, std::ios_base::iostate&, long long unsigned int&) const'
       get(iter_type __in, iter_type __end, ios_base& __io,
       ^
/usr/include/c++/4.8/bits/locale_facets.h:2202:7: error: 'virtual std::num_get<_CharT, _InIter>::iter_type std::num_get<_CharT, _InIter>::do_get(std::num_get<_CharT, _InIter>::iter_type, std::num_get<_CharT, _InIter>::iter_type, std::ios_base&, std::ios_base::iostate&, long long unsigned int&) const' cannot be overloaded
       do_get(iter_type __beg, iter_type __end, ios_base& __io,
       ^
/usr/include/c++/4.8/bits/locale_facets.h:2186:7: error: with 'virtual std::num_get<_CharT, _InIter>::iter_type std::num_get<_CharT, _InIter>::do_get(std::num_get<_CharT, _InIter>::iter_type, std::num_get<_CharT, _InIter>::iter_type, std::ios_base&, std::ios_base::iostate&, long long unsigned int&) const'
       do_get(iter_type __beg, iter_type __end, ios_base& __io,
       ^
In file included from /usr/include/c++/4.8/istream:39:0,
                 from /usr/include/c++/4.8/fstream:38,
                 from parimpar2.cpp:2:
/usr/include/c++/4.8/ostream:201:7: error: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int)' cannot be overloaded
       operator<<(long long __n)
       ^
/usr/include/c++/4.8/ostream:189:7: error: with 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int)'
       operator<<(int __n);
       ^
/usr/include/c++/4.8/ostream:205:7: error: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int)' cannot be overloaded
       operator<<(unsigned long long __n)
       ^
/usr/include/c++/4.8/ostream:192:7: error: with 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int)'
       operator<<(unsigned int __n)
       ^
In file included from /usr/include/c++/4.8/fstream:38:0,
                 from parimpar2.cpp:2:
/usr/include/c++/4.8/istream:195:7: error: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&)' cannot be overloaded
       operator>>(long long& __n)
       ^
/usr/include/c++/4.8/istream:179:7: error: with 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&)'
       operator>>(int& __n);
       ^
/usr/include/c++/4.8/istream:199:7: error: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&)' cannot be overloaded
       operator>>(unsigned long long& __n)
       ^
/usr/include/c++/4.8/istream:182:7: error: with 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&)'
       operator>>(unsigned int& __n)
       ^
/usr/include/c++/4.8/bits/istream.tcc: In member function 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(long long int&)':
parimpar2.cpp:1:13: error: expected primary-expression before 'long'
 #define int long long

             ^
parimpar2.cpp:1:13: error: expected ';' before 'long'
parimpar2.cpp: At global scope:
parimpar2.cpp:6:10: error: '::main' must return 'int'
 int main()

          ^
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 parimpar2.cpp:2:
/usr/include/c++/4.8/bits/stl_iterator.h: In instantiation of 'class __gnu_cxx::__normal_iterator<const char*, std::basic_string<char> >':
/usr/include/c++/4.8/bits/basic_string.tcc:140:51:   required from 'static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&, std::forward_iterator_tag) [with _FwdIterator = char*; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
/usr/include/c++/4.8/bits/basic_string.h:1725:56:   required from 'static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct_aux(_InIterator, _InIterator, const _Alloc&, std::__false_type) [with _InIterator = char*; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
/usr/include/c++/4.8/bits/basic_string.h:1746:58:   required from 'static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&) [with _InIterator = char*; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
/usr/include/c++/4.8/bits/basic_string.tcc:229:49:   required from 'std::basic_string<_CharT, _Traits, _Alloc>::basic_string(_InputIterator, _InputIterator, const _Alloc&) [with _InputIterator = char*; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
/usr/include/c++/4.8/ext/string_conversions.h:99:38:   required from '_String __gnu_cxx::__to_xstring(long long int (*)(_CharT*, std::size_t, const _CharT*, char*), std::size_t, const _CharT*, ...) [with _String = std::basic_string<char>; _CharT = char; std::size_t = long long unsigned int]'
/usr/include/c++/4.8/bits/basic_string.h:2866:20:   required from here
/usr/include/c++/4.8/bits/stl_iterator.h:753:7: error: postfix '__gnu_cxx::__normal_iterator<_Iterator, _Container> __gnu_cxx::__normal_iterator<_Iterator, _Container>::operator++(long long int) [with _Iterator = const char*; _Container = std::basic_string<char>]' must take 'int' as its argument
       operator++(int)
       ^
/usr/include/c++/4.8/bits/stl_iterator.h:765:7: error: postfix '__gnu_cxx::__normal_iterator<_Iterator, _Container> __gnu_cxx::__normal_iterator<_Iterator, _Container>::operator--(long long int) [with _Iterator = const char*; _Container = std::basic_string<char>]' must take 'int' as its argument
       operator--(int)
       ^
/usr/include/c++/4.8/bits/stl_iterator.h: In instantiation of 'class __gnu_cxx::__normal_iterator<char*, std::basic_string<char> >':
/usr/include/c++/4.8/bits/basic_string.tcc:140:51:   required from 'static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&, std::forward_iterator_tag) [with _FwdIterator = char*; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
/usr/include/c++/4.8/bits/basic_string.h:1725:56:   required from 'static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct_aux(_InIterator, _InIterator, const _Alloc&, std::__false_type) [with _InIterator = char*; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
/usr/include/c++/4.8/bits/basic_string.h:1746:58:   required from 'static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&) [with _InIterator = char*; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
/usr/include/c++/4.8/bits/basic_string.tcc:229:49:   required from 'std::basic_string<_CharT, _Traits, _Alloc>::basic_string(_InputIterator, _InputIterator, const _Alloc&) [with _InputIterator = char*; _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
/usr/include/c++/4.8/ext/string_conversions.h:99:38:   required from '_String __gnu_cxx::__to_xstring(long long int (*)(_CharT*, std::size_t, const _CharT*, char*), std::size_t, const _CharT*, ...) [with _String = std::basic_string<char>; _CharT = char; std::size_t = long long unsigned int]'
/usr/include/c++/4.8/bits/basic_string.h:2866:20:   required from here
/usr/include/c++/4.8/bits/stl_iterator.h:753:7: error: postfix '__gnu_cxx::__normal_iterator<_Iterator, _Container> __gnu_cxx::__normal_iterator<_Iterator, _Container>::operator++(long long int) [with _Iterator = char*; _Container = std::basic_string<char>]' must take 'int' as its argument
       operator++(int)
       ^
/usr/include/c++/4.8/bits/stl_iterator.h:765:7: error: postfix '__gnu_cxx::__normal_iterator<_Iterator, _Container> __gnu_cxx::__normal_iterator<_Iterator, _Container>::operator--(long long int) [with _Iterator = char*; _Container = std::basic_string<char>]' must take 'int' as its argument
       operator--(int)
       ^
/usr/include/c++/4.8/bits/stl_iterator.h: In instantiation of 'class __gnu_cxx::__normal_iterator<const wchar_t*, std::basic_string<wchar_t> >':
/usr/include/c++/4.8/bits/basic_string.tcc:140:51:   required from 'static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&, std::forward_iterator_tag) [with _FwdIterator = wchar_t*; _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>]'
/usr/include/c++/4.8/bits/basic_string.h:1725:56:   required from 'static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct_aux(_InIterator, _InIterator, const _Alloc&, std::__false_type) [with _InIterator = wchar_t*; _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>]'
/usr/include/c++/4.8/bits/basic_string.h:1746:58:   required from 'static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&) [with _InIterator = wchar_t*; _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>]'
/usr/include/c++/4.8/bits/basic_string.tcc:229:49:   required from 'std::basic_string<_CharT, _Traits, _Alloc>::basic_string(_InputIterator, _InputIterator, const _Alloc&) [with _InputIterator = wchar_t*; _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>]'
/usr/include/c++/4.8/ext/string_conversions.h:99:38:   required from '_String __gnu_cxx::__to_xstring(long long int (*)(_CharT*, std::size_t, const _CharT*, char*), std::size_t, const _CharT*, ...) [with _String = std::basic_string<wchar_t>; _CharT = wchar_t; std::size_t = long long unsigned int]'
/usr/include/c++/4.8/bits/basic_string.h:2967:22:   required from here
/usr/include/c++/4.8/bits/stl_iterator.h:753:7: error: postfix '__gnu_cxx::__normal_iterator<_Iterator, _Container> __gnu_cxx::__normal_iterator<_Iterator, _Container>::operator++(long long int) [with _Iterator = const wchar_t*; _Container = std::basic_string<wchar_t>]' must take 'int' as its argument
       operator++(int)
       ^
/usr/include/c++/4.8/bits/stl_iterator.h:765:7: error: postfix '__gnu_cxx::__normal_iterator<_Iterator, _Container> __gnu_cxx::__normal_iterator<_Iterator, _Container>::operator--(long long int) [with _Iterator = const wchar_t*; _Container = std::basic_string<wchar_t>]' must take 'int' as its argument
       operator--(int)
       ^
/usr/include/c++/4.8/bits/stl_iterator.h: In instantiation of 'class __gnu_cxx::__normal_iterator<wchar_t*, std::basic_string<wchar_t> >':
/usr/include/c++/4.8/bits/basic_string.tcc:140:51:   required from 'static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&, std::forward_iterator_tag) [with _FwdIterator = wchar_t*; _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>]'
/usr/include/c++/4.8/bits/basic_string.h:1725:56:   required from 'static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct_aux(_InIterator, _InIterator, const _Alloc&, std::__false_type) [with _InIterator = wchar_t*; _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>]'
/usr/include/c++/4.8/bits/basic_string.h:1746:58:   required from 'static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&) [with _InIterator = wchar_t*; _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>]'
/usr/include/c++/4.8/bits/basic_string.tcc:229:49:   required from 'std::basic_string<_CharT, _Traits, _Alloc>::basic_string(_InputIterator, _InputIterator, const _Alloc&) [with _InputIterator = wchar_t*; _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>]'
/usr/include/c++/4.8/ext/string_conversions.h:99:38:   required from '_String __gnu_cxx::__to_xstring(long long int (*)(_CharT*, std::size_t, const _CharT*, char*), std::size_t, const _CharT*, ...) [with _String = std::basic_string<wchar_t>; _CharT = wchar_t; std::size_t = long long unsigned int]'
/usr/include/c++/4.8/bits/basic_string.h:2967:22:   required from here
/usr/include/c++/4.8/bits/stl_iterator.h:753:7: error: postfix '__gnu_cxx::__normal_iterator<_Iterator, _Container> __gnu_cxx::__normal_iterator<_Iterator, _Container>::operator++(long long int) [with _Iterator = wchar_t*; _Container = std::basic_string<wchar_t>]' must take 'int' as its argument
       operator++(int)
       ^
/usr/include/c++/4.8/bits/stl_iterator.h:765:7: error: postfix '__gnu_cxx::__normal_iterator<_Iterator, _Container> __gnu_cxx::__normal_iterator<_Iterator, _Container>::operator--(long long int) [with _Iterator = wchar_t*; _Container = std::basic_string<wchar_t>]' must take 'int' as its argument
       operator--(int)
       ^

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 ParImpar2 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ă.

Du-te sus!