Detalii evaluare #64316918

Rezumat problemă

Se consideră o matrice cu m linii și n coloane, numere naturale. Folosind metoda Divide et Impera, determinați suma numerelor pare din matrice.

Detalii

Problema MatrDivImp1 Operații I/O tastatură/ecran
Limita timp 0.1 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #64316918 Utilizator Dragoescu Denis (Denis24444)
Fișier matrdivimp1.cpp Dimensiune 385 B
Data încărcării 29 Aprilie 2026, 12:15 Scor/rezultat Eroare de compilare

Evaluare

Mesaj compilare

In file included from /usr/include/c++/13/bits/requires_hosted.h:31,
                 from /usr/include/c++/13/iostream:38,
                 from matrdivimp1.cpp:14:
/usr/include/x86_64-linux-gnu/c++/13/bits/c++config.h: In function ‘int Di(int*, int, int)’:
/usr/include/x86_64-linux-gnu/c++/13/bits/c++config.h:306:1: error: ‘namespace’ definition is not allowed here
  306 | namespace std
      | ^~~~~~~~~
/usr/include/x86_64-linux-gnu/c++/13/bits/c++config.h:339:1: error: ‘namespace’ definition is not allowed here
  339 | namespace std
      | ^~~~~~~~~
/usr/include/x86_64-linux-gnu/c++/13/bits/c++config.h:343:1: error: ‘namespace’ definition is not allowed here
  343 | namespace __gnu_cxx
      | ^~~~~~~~~
/usr/include/x86_64-linux-gnu/c++/13/bits/c++config.h:532:1: error: ‘namespace’ definition is not allowed here
  532 | namespace std
      | ^~~~~~~~~
/usr/include/c++/13/bits/memoryfwd.h:50:15: error: expected ‘=’ before ‘__attribute__’
   50 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/memoryfwd.h:50:15: error: expected identifier before ‘__attribute__’
In file included from /usr/include/c++/13/bits/stringfwd.h:40,
                 from /usr/include/c++/13/iosfwd:41,
                 from /usr/include/c++/13/ios:40,
                 from /usr/include/c++/13/ostream:40,
                 from /usr/include/c++/13/iostream:41:
/usr/include/c++/13/bits/memoryfwd.h:50:14: error: expected ‘;’ before ‘__attribute__’
   50 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/memoryfwd.h:51:1: error: expected primary-expression before ‘{’ token
   51 | {
      | ^
/usr/include/c++/13/bits/stringfwd.h:42:15: error: expected ‘=’ before ‘__attribute__’
   42 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/stringfwd.h:42:15: error: expected identifier before ‘__attribute__’
/usr/include/c++/13/bits/stringfwd.h:42:14: error: expected ‘;’ before ‘__attribute__’
   42 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/stringfwd.h:43:1: error: expected primary-expression before ‘{’ token
   43 | {
      | ^
In file included from /usr/include/features.h:502,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/os_defines.h:39,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/c++config.h:679:
/usr/include/wchar.h:90:1: error: expected unqualified-id before string constant
   90 | __BEGIN_DECLS
      | ^~~~~~~~~~~~~
In file included from /usr/include/c++/13/bits/postypes.h:40,
                 from /usr/include/c++/13/iosfwd:42:
/usr/include/c++/13/cwchar:62:1: error: ‘namespace’ definition is not allowed here
   62 | namespace std
      | ^~~~~~~~~
/usr/include/c++/13/cwchar:135:8: error: expected unqualified-id before string constant
  135 | extern "C++"
      |        ^~~~~
/usr/include/c++/13/cwchar:244:1: error: ‘namespace’ definition is not allowed here
  244 | namespace __gnu_cxx
      | ^~~~~~~~~
/usr/include/c++/13/cwchar:265:1: error: ‘namespace’ definition is not allowed here
  265 | namespace std
      | ^~~~~~~~~
/usr/include/c++/13/cwchar:280:1: error: ‘namespace’ definition is not allowed here
  280 | namespace std
      | ^~~~~~~~~
/usr/include/c++/13/bits/postypes.h:42:15: error: expected ‘=’ before ‘__attribute__’
   42 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/postypes.h:42:15: error: expected identifier before ‘__attribute__’
/usr/include/c++/13/bits/postypes.h:42:14: error: expected ‘;’ before ‘__attribute__’
   42 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/postypes.h:43:1: error: expected primary-expression before ‘{’ token
   43 | {
      | ^
/usr/include/c++/13/iosfwd:44:15: error: expected ‘=’ before ‘__attribute__’
   44 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/iosfwd:44:15: error: expected identifier before ‘__attribute__’
/usr/include/c++/13/iosfwd:44:14: error: expected ‘;’ before ‘__attribute__’
   44 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/iosfwd:45:1: error: expected primary-expression before ‘{’ token
   45 | {
      | ^
In file included from /usr/include/c++/13/exception:36,
                 from /usr/include/c++/13/ios:41:
/usr/include/c++/13/bits/exception.h:38:8: error: expected unqualified-id before string constant
   38 | extern "C++" {
      |        ^~~~~
/usr/include/c++/13/exception:38:8: error: expected unqualified-id before string constant
   38 | extern "C++" {
      |        ^~~~~
In file included from /usr/include/c++/13/bits/exception_ptr.h:36,
                 from /usr/include/c++/13/exception:164:
/usr/include/c++/13/bits/cxxabi_init_exception.h:50:1: error: ‘namespace’ definition is not allowed here
   50 | namespace std
      | ^~~~~~~~~
/usr/include/c++/13/bits/cxxabi_init_exception.h:55:1: error: ‘namespace’ definition is not allowed here
   55 | namespace __cxxabiv1
      | ^~~~~~~~~
In file included from /usr/include/c++/13/typeinfo:36,
                 from /usr/include/c++/13/bits/exception_ptr.h:37:
/usr/include/c++/13/bits/hash_bytes.h:37:1: error: ‘namespace’ definition is not allowed here
   37 | namespace std
      | ^~~~~~~~~
/usr/include/c++/13/typeinfo:45:8: error: expected unqualified-id before string constant
   45 | extern "C++" {
      |        ^~~~~
In file included from /usr/include/c++/13/bits/exception_ptr.h:38:
/usr/include/c++/13/new:45:8: error: expected unqualified-id before string constant
   45 | extern "C++" {
      |        ^~~~~
/usr/include/c++/13/type_traits:40:15: error: expected ‘=’ before ‘__attribute__’
   40 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/type_traits:40:15: error: expected identifier before ‘__attribute__’
In file included from /usr/include/c++/13/bits/move.h:37,
                 from /usr/include/c++/13/bits/exception_ptr.h:41:
/usr/include/c++/13/type_traits:40:14: error: expected ‘;’ before ‘__attribute__’
   40 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/type_traits:41:1: error: expected primary-expression before ‘{’ token
   41 | {
      | ^
/usr/include/c++/13/bits/move.h:40:15: error: expected ‘=’ before ‘__attribute__’
   40 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/move.h:40:15: error: expected identifier before ‘__attribute__’
/usr/include/c++/13/bits/move.h:40:14: error: expected ‘;’ before ‘__attribute__’
   40 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/move.h:41:1: error: expected primary-expression before ‘{’ token
   41 | {
      | ^
/usr/include/c++/13/bits/exception_ptr.h:50:8: error: expected unqualified-id before string constant
   50 | extern "C++" {
      |        ^~~~~
In file included from /usr/include/c++/13/exception:165:
/usr/include/c++/13/bits/nested_exception.h:40:8: error: expected unqualified-id before string constant
   40 | extern "C++" {
      |        ^~~~~
/usr/include/c++/13/bits/char_traits.h:64:21: error: expected ‘=’ before ‘__attribute__’
   64 | namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
      |                     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/char_traits.h:64:21: error: expected identifier before ‘__attribute__’
In file included from /usr/include/c++/13/ios:42:
/usr/include/c++/13/bits/char_traits.h:64:20: error: expected ‘;’ before ‘__attribute__’
   64 | namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
      |                    ^
      |                    ;
/usr/include/c++/13/bits/char_traits.h:65:1: error: expected primary-expression before ‘{’ token
   65 | {
      | ^
/usr/include/c++/13/bits/char_traits.h:305:15: error: expected ‘=’ before ‘__attribute__’
  305 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/char_traits.h:305:15: error: expected identifier before ‘__attribute__’
/usr/include/c++/13/bits/char_traits.h:305:14: error: expected ‘;’ before ‘__attribute__’
  305 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/char_traits.h:306:1: error: expected primary-expression before ‘{’ token
  306 | {
      | ^
/usr/include/c++/13/bits/char_traits.h:745:15: error: expected ‘=’ before ‘__attribute__’
  745 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/char_traits.h:745:15: error: expected identifier before ‘__attribute__’
/usr/include/c++/13/bits/char_traits.h:745:14: error: expected ‘;’ before ‘__attribute__’
  745 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/char_traits.h:746:1: error: expected primary-expression before ‘{’ token
  746 | {
      | ^
/usr/include/locale.h:31:1: error: expected unqualified-id before string constant
   31 | __BEGIN_DECLS
      | ^~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/13/bits/c++locale.h:41,
                 from /usr/include/c++/13/bits/localefwd.h:40,
                 from /usr/include/c++/13/ios:43:
/usr/include/c++/13/clocale:51:1: error: ‘namespace’ definition is not allowed here
   51 | namespace std
      | ^~~~~~~~~
/usr/include/x86_64-linux-gnu/c++/13/bits/c++locale.h:48:21: error: expected ‘=’ before ‘__attribute__’
   48 | namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
      |                     ^~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/c++/13/bits/c++locale.h:48:21: error: expected identifier before ‘__attribute__’
/usr/include/x86_64-linux-gnu/c++/13/bits/c++locale.h:48:20: error: expected ‘;’ before ‘__attribute__’
   48 | namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
      |                    ^
      |                    ;
/usr/include/x86_64-linux-gnu/c++/13/bits/c++locale.h:49:1: error: expected primary-expression before ‘{’ token
   49 | {
      | ^
/usr/include/x86_64-linux-gnu/c++/13/bits/c++locale.h:58:15: error: expected ‘=’ before ‘__attribute__’
   58 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/c++/13/bits/c++locale.h:58:15: error: expected identifier before ‘__attribute__’
/usr/include/x86_64-linux-gnu/c++/13/bits/c++locale.h:58:14: error: expected ‘;’ before ‘__attribute__’
   58 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/x86_64-linux-gnu/c++/13/bits/c++locale.h:59:1: error: expected primary-expression before ‘{’ token
   59 | {
      | ^
/usr/include/ctype.h:28:1: error: expected unqualified-id before string constant
   28 | __BEGIN_DECLS
      | ^~~~~~~~~~~~~
In file included from /usr/include/c++/13/bits/localefwd.h:42:
/usr/include/c++/13/cctype:62:1: error: ‘namespace’ definition is not allowed here
   62 | namespace std
      | ^~~~~~~~~
/usr/include/c++/13/cctype:85:1: error: ‘namespace’ definition is not allowed here
   85 | namespace std
      | ^~~~~~~~~
/usr/include/c++/13/bits/localefwd.h:44:15: error: expected ‘=’ before ‘__attribute__’
   44 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/localefwd.h:44:15: error: expected identifier before ‘__attribute__’
/usr/include/c++/13/bits/localefwd.h:44:14: error: expected ‘;’ before ‘__attribute__’
   44 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/localefwd.h:45:1: error: expected primary-expression before ‘{’ token
   45 | {
      | ^
/usr/include/x86_64-linux-gnu/bits/sched.h:82:1: error: expected unqualified-id before string constant
   82 | __BEGIN_DECLS
      | ^~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/cpu-set.h:115:1: error: expected unqualified-id before string constant
  115 | __BEGIN_DECLS
      | ^~~~~~~~~~~~~
/usr/include/sched.h:51:1: error: expected unqualified-id before string constant
   51 | __BEGIN_DECLS
      | ^~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/time.h:75:1: error: expected unqualified-id before string constant
   75 | __BEGIN_DECLS
      | ^~~~~~~~~~~~~
/usr/include/time.h:68:1: error: expected unqualified-id before string constant
   68 | __BEGIN_DECLS
      | ^~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/pthread_stack_min-dynamic.h:23:1: error: expected unqualified-id before string constant
   23 | __BEGIN_DECLS
      | ^~~~~~~~~~~~~
/usr/include/pthread.h:197:1: error: expected unqualified-id before string constant
  197 | __BEGIN_DECLS
      | ^~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/13/bits/gthr.h:148,
                 from /usr/include/c++/13/ext/atomicity.h:35,
                 from /usr/include/c++/13/bits/ios_base.h:39,
                 from /usr/include/c++/13/ios:44:
/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h:301:1: error: a function-definition is not allowed here before ‘{’ token
  301 | {
      | ^
/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h:662:1: error: a function-definition is not allowed here before ‘{’ token
  662 | {
      | ^
/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h:668:1: error: a function-definition is not allowed here before ‘{’ token
  668 | {
      | ^
/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h:674:1: error: a function-definition is not allowed here before ‘{’ token
  674 | {
      | ^
/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h:680:1: error: a function-definition is not allowed here before ‘{’ token
  680 | {
      | ^
/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h:686:1: error: a function-definition is not allowed here before ‘{’ token
  686 | {
      | ^
/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h:692:1: error: a function-definition is not allowed here before ‘{’ token
  692 | {
      | ^
/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h:698:1: error: a function-definition is not allowed here before ‘{’ token
  698 | {
      | ^
/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h:707:1: error: a function-definition is not allowed here before ‘{’ token
  707 | {
      | ^
/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h:713:1: error: a function-definition is not allowed here before ‘{’ token
  713 | {
      | ^
/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h:719:1: error: a function-definition is not allowed here before ‘{’ token
  719 | {
      | ^
/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h:725:1: error: a function-definition is not allowed here before ‘{’ token
  725 | {
      | ^
/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h:731:1: error: a function-definition is not allowed here before ‘{’ token
  731 | {
      | ^
/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h:738:1: error: a function-definition is not allowed here before ‘{’ token
  738 | {
      | ^
/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h:747:1: error: a function-definition is not allowed here before ‘{’ token
  747 | {
      | ^
/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h:756:1: error: a function-definition is not allowed here before ‘{’ token
  756 | {
      | ^
/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h:767:1: error: a function-definition is not allowed here before ‘{’ token
  767 | {
      | ^
/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h:777:1: error: a function-definition is not allowed here before ‘{’ token
  777 | {
      | ^
/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h:810:1: error: a function-definition is not allowed here before ‘{’ token
  810 | {
      | ^
/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h:816:1: error: a function-definition is not allowed here before ‘{’ token
  816 | {
      | ^
/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h:824:1: error: a function-definition is not allowed here before ‘{’ token
  824 | {
      | ^
/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h:831:1: error: a function-definition is not allowed here before ‘{’ token
  831 | {
      | ^
/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h:837:1: error: a function-definition is not allowed here before ‘{’ token
  837 | {
      | ^
/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h:852:1: error: a function-definition is not allowed here before ‘{’ token
  852 | {
      | ^
/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h:858:1: error: a function-definition is not allowed here before ‘{’ token
  858 | {
      | ^
/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h:864:1: error: a function-definition is not allowed here before ‘{’ token
  864 | {
      | ^
/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h:871:1: error: a function-definition is not allowed here before ‘{’ token
  871 | {
      | ^
/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h:878:1: error: a function-definition is not allowed here before ‘{’ token
  878 | {
      | ^
/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h:884:1: error: a function-definition is not allowed here before ‘{’ token
  884 | {
      | ^
/usr/include/x86_64-linux-gnu/sys/single_threaded.h:24:1: error: expected unqualified-id before string constant
   24 | __BEGIN_DECLS
      | ^~~~~~~~~~~~~
/usr/include/c++/13/ext/atomicity.h:41:21: error: expected ‘=’ before ‘__attribute__’
   41 | namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
      |                     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/ext/atomicity.h:41:21: error: expected identifier before ‘__attribute__’
/usr/include/c++/13/ext/atomicity.h:41:20: error: expected ‘;’ before ‘__attribute__’
   41 | namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
      |                    ^
      |                    ;
/usr/include/c++/13/ext/atomicity.h:42:1: error: expected primary-expression before ‘{’ token
   42 | {
      | ^
/usr/include/c++/13/bits/functexcept.h:42:15: error: expected ‘=’ before ‘__attribute__’
   42 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/functexcept.h:42:15: error: expected identifier before ‘__attribute__’
In file included from /usr/include/c++/13/bits/new_allocator.h:35,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/c++allocator.h:33,
                 from /usr/include/c++/13/bits/allocator.h:46,
                 from /usr/include/c++/13/string:43,
                 from /usr/include/c++/13/bits/locale_classes.h:40,
                 from /usr/include/c++/13/bits/ios_base.h:41:
/usr/include/c++/13/bits/functexcept.h:42:14: error: expected ‘;’ before ‘__attribute__’
   42 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/functexcept.h:43:1: error: expected primary-expression before ‘{’ token
   43 | {
      | ^
/usr/include/c++/13/bits/new_allocator.h:41:15: error: expected ‘=’ before ‘__attribute__’
   41 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/new_allocator.h:41:15: error: expected identifier before ‘__attribute__’
/usr/include/c++/13/bits/new_allocator.h:41:14: error: expected ‘;’ before ‘__attribute__’
   41 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/new_allocator.h:42:1: error: expected primary-expression before ‘{’ token
   42 | {
      | ^
/usr/include/x86_64-linux-gnu/c++/13/bits/c++allocator.h:36:1: error: ‘namespace’ definition is not allowed here
   36 | namespace std
      | ^~~~~~~~~
/usr/include/c++/13/bits/allocator.h:54:15: error: expected ‘=’ before ‘__attribute__’
   54 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/allocator.h:54:15: error: expected identifier before ‘__attribute__’
/usr/include/c++/13/bits/allocator.h:54:14: error: expected ‘;’ before ‘__attribute__’
   54 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/allocator.h:55:1: error: expected primary-expression before ‘{’ token
   55 | {
      | ^
In file included from /usr/include/c++/13/string:44:
/usr/include/c++/13/bits/cpp_type_traits.h:67:8: error: expected unqualified-id before string constant
   67 | extern "C++" {
      |        ^~~~~
In file included from /usr/include/c++/13/bits/ostream_insert.h:36,
                 from /usr/include/c++/13/string:46:
/usr/include/c++/13/bits/cxxabi_forced.h:39:1: error: ‘namespace’ definition is not allowed here
   39 | namespace __cxxabiv1
      | ^~~~~~~~~
/usr/include/c++/13/bits/ostream_insert.h:39:15: error: expected ‘=’ before ‘__attribute__’
   39 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/ostream_insert.h:39:15: error: expected identifier before ‘__attribute__’
/usr/include/c++/13/bits/ostream_insert.h:39:14: error: expected ‘;’ before ‘__attribute__’
   39 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/ostream_insert.h:40:1: error: expected primary-expression before ‘{’ token
   40 | {
      | ^
/usr/include/c++/13/bits/stl_iterator_base_types.h:74:15: error: expected ‘=’ before ‘__attribute__’
   74 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_iterator_base_types.h:74:15: error: expected identifier before ‘__attribute__’
In file included from /usr/include/c++/13/bits/stl_iterator_base_funcs.h:66,
                 from /usr/include/c++/13/string:47:
/usr/include/c++/13/bits/stl_iterator_base_types.h:74:14: error: expected ‘;’ before ‘__attribute__’
   74 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/stl_iterator_base_types.h:75:1: error: expected primary-expression before ‘{’ token
   75 | {
      | ^
/usr/include/c++/13/bits/stl_iterator_base_funcs.h:68:15: error: expected ‘=’ before ‘__attribute__’
   68 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_iterator_base_funcs.h:68:15: error: expected identifier before ‘__attribute__’
/usr/include/c++/13/bits/stl_iterator_base_funcs.h:68:14: error: expected ‘;’ before ‘__attribute__’
   68 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/stl_iterator_base_funcs.h:69:1: error: expected primary-expression before ‘{’ token
   69 | {
      | ^
In file included from /usr/include/c++/13/bits/stl_iterator.h:65,
                 from /usr/include/c++/13/string:48:
/usr/include/c++/13/ext/type_traits.h:37:8: error: expected unqualified-id before string constant
   37 | extern "C++" {
      |        ^~~~~
/usr/include/c++/13/bits/ptr_traits.h:49:15: error: expected ‘=’ before ‘__attribute__’
   49 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/ptr_traits.h:49:15: error: expected identifier before ‘__attribute__’
In file included from /usr/include/c++/13/bits/stl_iterator.h:67:
/usr/include/c++/13/bits/ptr_traits.h:49:14: error: expected ‘;’ before ‘__attribute__’
   49 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/ptr_traits.h:50:1: error: expected primary-expression before ‘{’ token
   50 | {
      | ^
/usr/include/c++/13/bits/stl_iterator.h:88:15: error: expected ‘=’ before ‘__attribute__’
   88 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_iterator.h:88:15: error: expected identifier before ‘__attribute__’
/usr/include/c++/13/bits/stl_iterator.h:88:14: error: expected ‘;’ before ‘__attribute__’
   88 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/stl_iterator.h:89:1: error: expected primary-expression before ‘{’ token
   89 | {
      | ^
/usr/include/c++/13/bits/stl_iterator.h:1035:21: error: expected ‘=’ before ‘__attribute__’
 1035 | namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
      |                     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_iterator.h:1035:21: error: expected identifier before ‘__attribute__’
/usr/include/c++/13/bits/stl_iterator.h:1035:20: error: expected ‘;’ before ‘__attribute__’
 1035 | namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
      |                    ^
      |                    ;
/usr/include/c++/13/bits/stl_iterator.h:1036:1: error: expected primary-expression before ‘{’ token
 1036 | {
      | ^
/usr/include/c++/13/bits/stl_iterator.h:1350:15: error: expected ‘=’ before ‘__attribute__’
 1350 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_iterator.h:1350:15: error: expected identifier before ‘__attribute__’
/usr/include/c++/13/bits/stl_iterator.h:1350:14: error: expected ‘;’ before ‘__attribute__’
 1350 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/stl_iterator.h:1351:1: error: expected primary-expression before ‘{’ token
 1351 | {
      | ^
/usr/include/c++/13/bits/stl_function.h:63:15: error: expected ‘=’ before ‘__attribute__’
   63 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_function.h:63:15: error: expected identifier before ‘__attribute__’
In file included from /usr/include/c++/13/string:49:
/usr/include/c++/13/bits/stl_function.h:63:14: error: expected ‘;’ before ‘__attribute__’
   63 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/stl_function.h:64:1: error: expected primary-expression before ‘{’ token
   64 | {
      | ^
/usr/include/c++/13/backward/binders.h:63:15: error: expected ‘=’ before ‘__attribute__’
   63 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/backward/binders.h:63:15: error: expected identifier before ‘__attribute__’
In file included from /usr/include/c++/13/bits/stl_function.h:1438:
/usr/include/c++/13/backward/binders.h:63:14: error: expected ‘;’ before ‘__attribute__’
   63 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/backward/binders.h:64:1: error: expected primary-expression before ‘{’ token
   64 | {
      | ^
/usr/include/c++/13/ext/numeric_traits.h:37:21: error: expected ‘=’ before ‘__attribute__’
   37 | namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
      |                     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/ext/numeric_traits.h:37:21: error: expected identifier before ‘__attribute__’
In file included from /usr/include/c++/13/string:50:
/usr/include/c++/13/ext/numeric_traits.h:37:20: error: expected ‘;’ before ‘__attribute__’
   37 | namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
      |                    ^
      |                    ;
/usr/include/c++/13/ext/numeric_traits.h:38:1: error: expected primary-expression before ‘{’ token
   38 | {
      | ^
/usr/include/c++/13/bits/utility.h:43:15: error: expected ‘=’ before ‘__attribute__’
   43 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/utility.h:43:15: error: expected identifier before ‘__attribute__’
In file included from /usr/include/c++/13/bits/stl_pair.h:62,
                 from /usr/include/c++/13/bits/stl_algobase.h:64,
                 from /usr/include/c++/13/string:51:
/usr/include/c++/13/bits/utility.h:43:14: error: expected ‘;’ before ‘__attribute__’
   43 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/utility.h:44:1: error: expected primary-expression before ‘{’ token
   44 | {
      | ^
/usr/include/c++/13/bits/stl_pair.h:69:15: error: expected ‘=’ before ‘__attribute__’
   69 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_pair.h:69:15: error: expected identifier before ‘__attribute__’
/usr/include/c++/13/bits/stl_pair.h:69:14: error: expected ‘;’ before ‘__attribute__’
   69 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/stl_pair.h:70:1: error: expected primary-expression before ‘{’ token
   70 | {
      | ^
In file included from /usr/include/c++/13/bits/stl_algobase.h:69:
/usr/include/c++/13/debug/debug.h:48:1: error: ‘namespace’ definition is not allowed here
   48 | namespace std
      | ^~~~~~~~~
/usr/include/c++/13/debug/debug.h:56:1: error: ‘namespace’ definition is not allowed here
   56 | namespace __gnu_debug
      | ^~~~~~~~~
In file included from /usr/include/c++/13/bits/stl_algobase.h:71:
/usr/include/c++/13/bits/predefined_ops.h:35:1: error: ‘namespace’ definition is not allowed here
   35 | namespace __gnu_cxx
      | ^~~~~~~~~
/usr/include/c++/13/bits/stl_algobase.h:82:15: error: expected ‘=’ before ‘__attribute__’
   82 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_algobase.h:82:15: error: expected identifier before ‘__attribute__’
/usr/include/c++/13/bits/stl_algobase.h:82:14: error: expected ‘;’ before ‘__attribute__’
   82 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/stl_algobase.h:83:1: error: expected primary-expression before ‘{’ token
   83 | {
      | ^
/usr/include/c++/13/bits/invoke.h:42:15: error: expected ‘=’ before ‘__attribute__’
   42 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/invoke.h:42:15: error: expected identifier before ‘__attribute__’
In file included from /usr/include/c++/13/bits/refwrap.h:38,
                 from /usr/include/c++/13/string:52:
/usr/include/c++/13/bits/invoke.h:42:14: error: expected ‘;’ before ‘__attribute__’
   42 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/invoke.h:43:1: error: expected primary-expression before ‘{’ token
   43 | {
      | ^
/usr/include/c++/13/bits/refwrap.h:41:15: error: expected ‘=’ before ‘__attribute__’
   41 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/refwrap.h:41:15: error: expected identifier before ‘__attribute__’
/usr/include/c++/13/bits/refwrap.h:41:14: error: expected ‘;’ before ‘__attribute__’
   41 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/refwrap.h:42:1: error: expected primary-expression before ‘{’ token
   42 | {
      | ^
/usr/include/c++/13/initializer_list:41:15: error: expected ‘=’ before ‘__attribute__’
   41 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/initializer_list:41:15: error: expected identifier before ‘__attribute__’
In file included from /usr/include/c++/13/bits/range_access.h:36,
                 from /usr/include/c++/13/string:53:
/usr/include/c++/13/initializer_list:41:14: error: expected ‘;’ before ‘__attribute__’
   41 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/initializer_list:42:1: error: expected primary-expression before ‘{’ token
   42 | {
      | ^
/usr/include/c++/13/bits/range_access.h:40:15: error: expected ‘=’ before ‘__attribute__’
   40 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/range_access.h:40:15: error: expected identifier before ‘__attribute__’
/usr/include/c++/13/bits/range_access.h:40:14: error: expected ‘;’ before ‘__attribute__’
   40 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/range_access.h:41:1: error: expected primary-expression before ‘{’ token
   41 | {
      | ^
/usr/include/c++/13/bits/stl_construct.h:73:15: error: expected ‘=’ before ‘__attribute__’
   73 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_construct.h:73:15: error: expected identifier before ‘__attribute__’
In file included from /usr/include/c++/13/bits/alloc_traits.h:33,
                 from /usr/include/c++/13/ext/alloc_traits.h:34,
                 from /usr/include/c++/13/bits/basic_string.h:39,
                 from /usr/include/c++/13/string:54:
/usr/include/c++/13/bits/stl_construct.h:73:14: error: expected ‘;’ before ‘__attribute__’
   73 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/stl_construct.h:74:1: error: expected primary-expression before ‘{’ token
   74 | {
      | ^
/usr/include/c++/13/bits/alloc_traits.h:43:15: error: expected ‘=’ before ‘__attribute__’
   43 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/alloc_traits.h:43:15: error: expected identifier before ‘__attribute__’
/usr/include/c++/13/bits/alloc_traits.h:43:14: error: expected ‘;’ before ‘__attribute__’
   43 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/alloc_traits.h:44:1: error: expected primary-expression before ‘{’ token
   44 | {
      | ^
/usr/include/c++/13/ext/alloc_traits.h:36:21: error: expected ‘=’ before ‘__attribute__’
   36 | namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
      |                     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/ext/alloc_traits.h:36:21: error: expected identifier before ‘__attribute__’
/usr/include/c++/13/ext/alloc_traits.h:36:20: error: expected ‘;’ before ‘__attribute__’
   36 | namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
      |                    ^
      |                    ;
/usr/include/c++/13/ext/alloc_traits.h:37:1: error: expected primary-expression before ‘{’ token
   37 | {
      | ^
/usr/include/c++/13/bits/basic_string.h:53:15: error: expected ‘=’ before ‘__attribute__’
   53 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/basic_string.h:53:15: error: expected identifier before ‘__attribute__’
/usr/include/c++/13/bits/basic_string.h:53:14: error: expected ‘;’ before ‘__attribute__’
   53 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/basic_string.h:54:1: error: expected primary-expression before ‘{’ token
   54 | {
      | ^
/usr/include/c++/13/bits/basic_string.h:3492:15: error: expected ‘=’ before ‘__attribute__’
 3492 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/basic_string.h:3492:15: error: expected identifier before ‘__attribute__’
/usr/include/c++/13/bits/basic_string.h:3492:14: error: expected ‘;’ before ‘__attribute__’
 3492 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/basic_string.h:3493:1: error: expected primary-expression before ‘{’ token
 3493 | {
      | ^
/usr/include/stdlib.h:34:1: error: expected unqualified-id before string constant
   34 | __BEGIN_DECLS
      | ^~~~~~~~~~~~~
In file included from /usr/include/c++/13/cstdlib:81,
                 from /usr/include/c++/13/ext/string_conversions.h:43,
                 from /usr/include/c++/13/bits/basic_string.h:4109:
/usr/include/c++/13/bits/std_abs.h:46:8: error: expected unqualified-id before string constant
   46 | extern "C++"
      |        ^~~~~
/usr/include/c++/13/cstdlib:125:8: error: expected unqualified-id before string constant
  125 | extern "C++"
      |        ^~~~~
/usr/include/stdio.h:30:1: error: expected unqualified-id before string constant
   30 | __BEGIN_DECLS
      | ^~~~~~~~~~~~~
In file included from /usr/include/c++/13/ext/string_conversions.h:45:
/usr/include/c++/13/cstdio:96:1: error: ‘namespace’ definition is not allowed here
   96 | namespace std
      | ^~~~~~~~~
/usr/include/c++/13/cstdio:157:1: error: ‘namespace’ definition is not allowed here
  157 | namespace __gnu_cxx
      | ^~~~~~~~~
/usr/include/c++/13/cstdio:183:1: error: ‘namespace’ definition is not allowed here
  183 | namespace std
      | ^~~~~~~~~
/usr/include/errno.h:34:1: error: expected unqualified-id before string constant
   34 | __BEGIN_DECLS
      | ^~~~~~~~~~~~~
/usr/include/c++/13/ext/string_conversions.h:48:21: error: expected ‘=’ before ‘__attribute__’
   48 | namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
      |                     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/ext/string_conversions.h:48:21: error: expected identifier before ‘__attribute__’
/usr/include/c++/13/ext/string_conversions.h:48:20: error: expected ‘;’ before ‘__attribute__’
   48 | namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
      |                    ^
      |                    ;
/usr/include/c++/13/ext/string_conversions.h:49:1: error: expected primary-expression before ‘{’ token
   49 | {
      | ^
/usr/include/c++/13/bits/charconv.h:40:15: error: expected ‘=’ before ‘__attribute__’
   40 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/charconv.h:40:15: error: expected identifier before ‘__attribute__’
In file included from /usr/include/c++/13/bits/basic_string.h:4110:
/usr/include/c++/13/bits/charconv.h:40:14: error: expected ‘;’ before ‘__attribute__’
   40 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/charconv.h:41:1: error: expected primary-expression before ‘{’ token
   41 | {
      | ^
/usr/include/c++/13/bits/basic_string.h:4112:15: error: expected ‘=’ before ‘__attribute__’
 4112 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/basic_string.h:4112:15: error: expected identifier before ‘__attribute__’
/usr/include/c++/13/bits/basic_string.h:4112:14: error: expected ‘;’ before ‘__attribute__’
 4112 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/basic_string.h:4113:1: error: expected primary-expression before ‘{’ token
 4113 | {
      | ^
/usr/include/c++/13/bits/functional_hash.h:38:15: error: expected ‘=’ before ‘__attribute__’
   38 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/functional_hash.h:38:15: error: expected identifier before ‘__attribute__’
In file included from /usr/include/c++/13/bits/basic_string.h:4391:
/usr/include/c++/13/bits/functional_hash.h:38:14: error: expected ‘;’ before ‘__attribute__’
   38 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/functional_hash.h:39:1: error: expected primary-expression before ‘{’ token
   39 | {
      | ^
/usr/include/c++/13/bits/basic_string.h:4393:15: error: expected ‘=’ before ‘__attribute__’
 4393 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/basic_string.h:4393:15: error: expected identifier before ‘__attribute__’
/usr/include/c++/13/bits/basic_string.h:4393:14: error: expected ‘;’ before ‘__attribute__’
 4393 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/basic_string.h:4394:1: error: expected primary-expression before ‘{’ token
 4394 | {
      | ^
/usr/include/c++/13/bits/basic_string.tcc:46:15: error: expected ‘=’ before ‘__attribute__’
   46 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/basic_string.tcc:46:15: error: expected identifier before ‘__attribute__’
In file included from /usr/include/c++/13/string:55:
/usr/include/c++/13/bits/basic_string.tcc:46:14: error: expected ‘;’ before ‘__attribute__’
   46 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/basic_string.tcc:47:1: error: expected primary-expression before ‘{’ token
   47 | {
      | ^
/usr/include/c++/13/bits/locale_classes.h:43:15: error: expected ‘=’ before ‘__attribute__’
   43 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/locale_classes.h:43:15: error: expected identifier before ‘__attribute__’
/usr/include/c++/13/bits/locale_classes.h:43:14: error: expected ‘;’ before ‘__attribute__’
   43 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/locale_classes.h:44:1: error: expected primary-expression before ‘{’ token
   44 | {
      | ^
/usr/include/c++/13/bits/locale_classes.tcc:39:15: error: expected ‘=’ before ‘__attribute__’
   39 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/locale_classes.tcc:39:15: error: expected identifier before ‘__attribute__’
In file included from /usr/include/c++/13/bits/locale_classes.h:869:
/usr/include/c++/13/bits/locale_classes.tcc:39:14: error: expected ‘;’ before ‘__attribute__’
   39 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/locale_classes.tcc:40:1: error: expected primary-expression before ‘{’ token
   40 | {
      | ^
/usr/include/x86_64-linux-gnu/c++/13/bits/error_constants.h:36:15: error: expected ‘=’ before ‘__attribute__’
   36 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/c++/13/bits/error_constants.h:36:15: error: expected identifier before ‘__attribute__’
In file included from /usr/include/c++/13/system_error:41,
                 from /usr/include/c++/13/bits/ios_base.h:46:
/usr/include/x86_64-linux-gnu/c++/13/bits/error_constants.h:36:14: error: expected ‘;’ before ‘__attribute__’
   36 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/x86_64-linux-gnu/c++/13/bits/error_constants.h:37:1: error: expected primary-expression before ‘{’ token
   37 | {
      | ^
/usr/include/c++/13/stdexcept:41:15: error: expected ‘=’ before ‘__attribute__’
   41 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/stdexcept:41:15: error: expected identifier before ‘__attribute__’
In file included from /usr/include/c++/13/system_error:43:
/usr/include/c++/13/stdexcept:41:14: error: expected ‘;’ before ‘__attribute__’
   41 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/stdexcept:42:1: error: expected primary-expression before ‘{’ token
   42 | {
      | ^
/usr/include/c++/13/system_error:48:15: error: expected ‘=’ before ‘__attribute__’
   48 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/system_error:48:15: error: expected identifier before ‘__attribute__’
/usr/include/c++/13/system_error:48:14: error: expected ‘;’ before ‘__attribute__’
   48 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/system_error:49:1: error: expected primary-expression before ‘{’ token
   49 | {
      | ^
/usr/include/c++/13/system_error:598:15: error: expected ‘=’ before ‘__attribute__’
  598 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/system_error:598:15: error: expected identifier before ‘__attribute__’
/usr/include/c++/13/system_error:598:14: error: expected ‘;’ before ‘__attribute__’
  598 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/system_error:599:1: error: expected primary-expression before ‘{’ token
  599 | {
      | ^
/usr/include/c++/13/bits/ios_base.h:49:15: error: expected ‘=’ before ‘__attribute__’
   49 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/ios_base.h:49:15: error: expected identifier before ‘__attribute__’
/usr/include/c++/13/bits/ios_base.h:49:14: error: expected ‘;’ before ‘__attribute__’
   49 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/ios_base.h:50:1: error: expected primary-expression before ‘{’ token
   50 | {
      | ^
/usr/include/c++/13/streambuf:47:15: error: expected ‘=’ before ‘__attribute__’
   47 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/streambuf:47:15: error: expected identifier before ‘__attribute__’
In file included from /usr/include/c++/13/ios:45:
/usr/include/c++/13/streambuf:47:14: error: expected ‘;’ before ‘__attribute__’
   47 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/streambuf:48:1: error: expected primary-expression before ‘{’ token
   48 | {
      | ^
/usr/include/c++/13/bits/streambuf.tcc:39:15: error: expected ‘=’ before ‘__attribute__’
   39 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/streambuf.tcc:39:15: error: expected identifier before ‘__attribute__’
In file included from /usr/include/c++/13/streambuf:860:
/usr/include/c++/13/bits/streambuf.tcc:39:14: error: expected ‘;’ before ‘__attribute__’
   39 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/streambuf.tcc:40:1: error: expected primary-expression before ‘{’ token
   40 | {
      | ^
/usr/include/x86_64-linux-gnu/bits/wctype-wchar.h:87:1: error: expected unqualified-id before string constant
   87 | __BEGIN_DECLS
      | ^~~~~~~~~~~~~
/usr/include/wctype.h:44:1: error: expected unqualified-id before string constant
   44 | __BEGIN_DECLS
      | ^~~~~~~~~~~~~
In file included from /usr/include/c++/13/bits/locale_facets.h:39,
                 from /usr/include/c++/13/bits/basic_ios.h:37,
                 from /usr/include/c++/13/ios:46:
/usr/include/c++/13/cwctype:80:1: error: ‘namespace’ definition is not allowed here
   80 | namespace std
      | ^~~~~~~~~
/usr/include/x86_64-linux-gnu/c++/13/bits/ctype_base.h:36:15: error: expected ‘=’ before ‘__attribute__’
   36 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/c++/13/bits/ctype_base.h:36:15: error: expected identifier before ‘__attribute__’
In file included from /usr/include/c++/13/bits/locale_facets.h:41:
/usr/include/x86_64-linux-gnu/c++/13/bits/ctype_base.h:36:14: error: expected ‘;’ before ‘__attribute__’
   36 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/x86_64-linux-gnu/c++/13/bits/ctype_base.h:37:1: error: expected primary-expression before ‘{’ token
   37 | {
      | ^
/usr/include/c++/13/bits/streambuf_iterator.h:39:15: error: expected ‘=’ before ‘__attribute__’
   39 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/streambuf_iterator.h:39:15: error: expected identifier before ‘__attribute__’
In file included from /usr/include/c++/13/bits/locale_facets.h:48:
/usr/include/c++/13/bits/streambuf_iterator.h:39:14: error: expected ‘;’ before ‘__attribute__’
   39 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/streambuf_iterator.h:40:1: error: expected primary-expression before ‘{’ token
   40 | {
      | ^
/usr/include/c++/13/bits/locale_facets.h:50:15: error: expected ‘=’ before ‘__attribute__’
   50 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/locale_facets.h:50:15: error: expected identifier before ‘__attribute__’
/usr/include/c++/13/bits/locale_facets.h:50:14: error: expected ‘;’ before ‘__attribute__’
   50 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/locale_facets.h:51:1: error: expected primary-expression before ‘{’ token
   51 | {
      | ^
/usr/include/x86_64-linux-gnu/c++/13/bits/ctype_inline.h:37:15: error: expected ‘=’ before ‘__attribute__’
   37 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/c++/13/bits/ctype_inline.h:37:15: error: expected identifier before ‘__attribute__’
In file included from /usr/include/c++/13/bits/locale_facets.h:1546:
/usr/include/x86_64-linux-gnu/c++/13/bits/ctype_inline.h:37:14: error: expected ‘;’ before ‘__attribute__’
   37 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/x86_64-linux-gnu/c++/13/bits/ctype_inline.h:38:1: error: expected primary-expression before ‘{’ token
   38 | {
      | ^
/usr/include/c++/13/bits/locale_facets.h:1548:15: error: expected ‘=’ before ‘__attribute__’
 1548 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/locale_facets.h:1548:15: error: expected identifier before ‘__attribute__’
/usr/include/c++/13/bits/locale_facets.h:1548:14: error: expected ‘;’ before ‘__attribute__’
 1548 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/locale_facets.h:1549:1: error: expected primary-expression before ‘{’ token
 1549 | {
      | ^
/usr/include/c++/13/bits/locale_facets.tcc:35:15: error: expected ‘=’ before ‘__attribute__’
   35 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/locale_facets.tcc:35:15: error: expected identifier before ‘__attribute__’
In file included from /usr/include/c++/13/bits/locale_facets.h:2687:
/usr/include/c++/13/bits/locale_facets.tcc:35:14: error: expected ‘;’ before ‘__attribute__’
   35 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/locale_facets.tcc:36:1: error: expected primary-expression before ‘{’ token
   36 | {
      | ^
/usr/include/c++/13/bits/basic_ios.h:41:15: error: expected ‘=’ before ‘__attribute__’
   41 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/basic_ios.h:41:15: error: expected identifier before ‘__attribute__’
/usr/include/c++/13/bits/basic_ios.h:41:14: error: expected ‘;’ before ‘__attribute__’
   41 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/basic_ios.h:42:1: error: expected primary-expression before ‘{’ token
   42 | {
      | ^
/usr/include/c++/13/bits/basic_ios.tcc:35:15: error: expected ‘=’ before ‘__attribute__’
   35 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/basic_ios.tcc:35:15: error: expected identifier before ‘__attribute__’
In file included from /usr/include/c++/13/bits/basic_ios.h:516:
/usr/include/c++/13/bits/basic_ios.tcc:35:14: error: expected ‘;’ before ‘__attribute__’
   35 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/basic_ios.tcc:36:1: error: expected primary-expression before ‘{’ token
   36 | {
      | ^
/usr/include/c++/13/ostream:43:15: error: expected ‘=’ before ‘__attribute__’
   43 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/ostream:43:15: error: expected identifier before ‘__attribute__’
/usr/include/c++/13/ostream:43:14: error: expected ‘;’ before ‘__attribute__’
   43 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/ostream:44:1: error: expected primary-expression before ‘{’ token
   44 | {
      | ^
/usr/include/c++/13/bits/ostream.tcc:41:15: error: expected ‘=’ before ‘__attribute__’
   41 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/ostream.tcc:41:15: error: expected identifier before ‘__attribute__’
In file included from /usr/include/c++/13/ostream:880:
/usr/include/c++/13/bits/ostream.tcc:41:14: error: expected ‘;’ before ‘__attribute__’
   41 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/ostream.tcc:42:1: error: expected primary-expression before ‘{’ token
   42 | {
      | ^
/usr/include/c++/13/istream:43:15: error: expected ‘=’ before ‘__attribute__’
   43 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/istream:43:15: error: expected identifier before ‘__attribute__’
In file included from /usr/include/c++/13/iostream:42:
/usr/include/c++/13/istream:43:14: error: expected ‘;’ before ‘__attribute__’
   43 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/istream:44:1: error: expected primary-expression before ‘{’ token
   44 | {
      | ^
/usr/include/c++/13/bits/istream.tcc:41:15: error: expected ‘=’ before ‘__attribute__’
   41 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/istream.tcc:41:15: error: expected identifier before ‘__attribute__’
In file included from /usr/include/c++/13/istream:1106:
/usr/include/c++/13/bits/istream.tcc:41:14: error: expected ‘;’ before ‘__attribute__’
   41 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/bits/istream.tcc:42:1: error: expected primary-expression before ‘{’ token
   42 | {
      | ^
/usr/include/c++/13/iostream:44:15: error: expected ‘=’ before ‘__attribute__’
   44 | namespace std _GLIBCXX_VISIBILITY(default)
      |               ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/iostream:44:15: error: expected identifier before ‘__attribute__’
/usr/include/c++/13/iostream:44:14: error: expected ‘;’ before ‘__attribute__’
   44 | namespace std _GLIBCXX_VISIBILITY(default)
      |              ^
      |              ;
/usr/include/c++/13/iostream:45:1: error: expected primary-expression before ‘{’ token
   45 | {
      | ^
matrdivimp1.cpp:16:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   16 | int main()
      |         ^~
matrdivimp1.cpp:16:9: note: remove parentheses to default-initialize a variable
   16 | int main()
      |         ^~
      |         --
matrdivimp1.cpp:16:9: note: or replace parentheses with braces to value-initialize a variable
matrdivimp1.cpp:17:1: error: a function-definition is not allowed here before ‘{’ token
   17 | {
      | ^
matrdivimp1.cpp:23:2: error: expected ‘}’ at end of input
   23 | }
      |  ^
matrdivimp1.cpp:13:1: note: to match this ‘{’
   13 | {
      | ^
matrdivimp1.cpp:23:2: error: expected ‘}’ at end of input
   23 | }
      |  ^
matrdivimp1.cpp:3:1: note: to match this ‘{’
    3 | {
      | ^

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 MatrDivImp1 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!