Mã chấm: 94885
Main.cc:5:13: error: stray ‘#’ in program int main() {#include ^ Main.cc: In function ‘int main()’: Main.cc:5:14: error: ‘include’ was not declared in this scope int main() {#include ^~~~~~~ Main.cc:5:23: error: ‘iostream’ was not declared in this scope int main() {#include ^~~~~~~~ Main.cc:5:23: note: suggested alternative: ‘system’ int main() {#include ^~~~~~~~ system In file included from /usr/include/c++/7/utility:69:0, from /usr/include/c++/7/algorithm:60, from Main.cc:6: /usr/include/c++/7/bits/stl_relops.h:67:1: error: expected primary-expression before ‘namespace’ namespace std _GLIBCXX_VISIBILITY(default) ^~~~~~~~~ In file included from /usr/include/c++/7/cmath:41:0, from /usr/include/c++/7/math.h:36, from Main.cc:3: /usr/include/c++/7/bits/move.h:36:15: error: expected ‘=’ before ‘__attribute__’ namespace std _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/7/bits/move.h:36:15: error: expected identifier before ‘__attribute__’ /usr/include/c++/7/bits/move.h:36:15: error: expected ‘;’ before ‘__attribute__’ In file included from /usr/include/c++/7/bits/stl_pair.h:59:0, from /usr/include/c++/7/utility:70, from /usr/include/c++/7/algorithm:60, from Main.cc:6: /usr/include/c++/7/bits/move.h:37:1: error: expected primary-expression before ‘{’ token { ^ In file included from /usr/include/c++/7/bits/move.h:54:0, from /usr/include/c++/7/bits/stl_pair.h:59, from /usr/include/c++/7/utility:70, from /usr/include/c++/7/algorithm:60, from Main.cc:6: /usr/include/c++/7/type_traits:42:1: error: ‘namespace’ definition is not allowed here namespace std ^~~~~~~~~ In file included from /usr/include/c++/7/cmath:41:0, from /usr/include/c++/7/math.h:36, from Main.cc:3: /usr/include/c++/7/type_traits:52:15: error: expected ‘=’ before ‘__attribute__’ namespace std _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/7/type_traits:52:15: error: expected identifier before ‘__attribute__’ /usr/include/c++/7/type_traits:52:15: error: expected ‘;’ before ‘__attribute__’ In file included from /usr/include/c++/7/bits/move.h:54:0, from /usr/include/c++/7/bits/stl_pair.h:59, from /usr/include/c++/7/utility:70, from /usr/include/c++/7/algorithm:60, from Main.cc:6: /usr/include/c++/7/type_traits:53:1: error: expected primary-expression before ‘{’ token { ^ In file included from /usr/include/c++/7/cmath:41:0, from /usr/include/c++/7/math.h:36, from Main.cc:3: /usr/include/c++/7/bits/move.h:56:15: error: expected ‘=’ before ‘__attribute__’ namespace std _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/7/bits/move.h:56:15: error: expected identifier before ‘__attribute__’ /usr/include/c++/7/bits/move.h:56:15: error: expected ‘;’ before ‘__attribute__’ In file included from /usr/include/c++/7/bits/stl_pair.h:59:0, from /usr/include/c++/7/utility:70, from /usr/include/c++/7/algorithm:60, from Main.cc:6: /usr/include/c++/7/bits/move.h:57:1: error: expected primary-expression before ‘{’ token { ^ In file included from /usr/include/c++/7/cmath:41:0, from /usr/include/c++/7/math.h:36, from Main.cc:3: /usr/include/c++/7/bits/move.h:166:15: error: expected ‘=’ before ‘__attribute__’ namespace std _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/7/bits/move.h:166:15: error: expected identifier before ‘__attribute__’ /usr/include/c++/7/bits/move.h:166:15: error: expected ‘;’ before ‘__attribute__’ In file included from /usr/include/c++/7/bits/stl_pair.h:59:0, from /usr/include/c++/7/utility:70, from /usr/include/c++/7/algorithm:60, from Main.cc:6: /usr/include/c++/7/bits/move.h:167:1: error: expected primary-expression before ‘{’ token { ^ In file included from /usr/include/c++/7/cmath:41:0, from /usr/include/c++/7/math.h:36, from Main.cc:3: /usr/include/c++/7/bits/stl_pair.h:65:15: error: expected ‘=’ before ‘__attribute__’ namespace std _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/7/bits/stl_pair.h:65:15: error: expected identifier before ‘__attribute__’ /usr/include/c++/7/bits/stl_pair.h:65:15: error: expected ‘;’ before ‘__attribute__’ In file included from /usr/include/c++/7/utility:70:0, from /usr/include/c++/7/algorithm:60, from Main.cc:6: /usr/include/c++/7/bits/stl_pair.h:66:1: error: expected primary-expression before ‘{’ token { ^ In file included from /usr/include/c++/7/utility:76:0, from /usr/include/c++/7/algorithm:60, from Main.cc:6: /usr/include/c++/7/initializer_list:43:1: error: ‘namespace’ definition is not allowed here namespace std ^~~~~~~~~ In file included from /usr/include/c++/7/cmath:41:0, from /usr/include/c++/7/math.h:36, from Main.cc:3: /usr/include/c++/7/utility:78:15: error: expected ‘=’ before ‘__attribute__’ namespace std _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/7/utility:78:15: error: expected identifier before ‘__attribute__’ /usr/include/c++/7/utility:78:15: error: expected ‘;’ before ‘__attribute__’ In file included from /usr/include/c++/7/algorithm:60:0, from Main.cc:6: /usr/include/c++/7/utility:79:1: error: expected primary-expression before ‘{’ token { ^ In file included from /usr/include/c++/7/cmath:41:0, from /usr/include/c++/7/math.h:36, from Main.cc:3: /usr/include/c++/7/bits/functexcept.h:42:15: error: expected ‘=’ before ‘__attribute__’ namespace std _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/7/bits/functexcept.h:42:15: error: expected identifier before ‘__attribute__’ /usr/include/c++/7/bits/functexcept.h:42:15: error: expected ‘;’ before ‘__attribute__’ In file included from /usr/include/c++/7/bits/stl_algobase.h:60:0, from /usr/include/c++/7/algorithm:61, from Main.cc:6: /usr/include/c++/7/bits/functexcept.h:43:1: error: expected primary-expression before ‘{’ token { ^ In file included from /usr/include/c++/7/cmath:41:0, from /usr/include/c++/7/math.h:36, from Main.cc:3: /usr/include/c++/7/ext/numeric_traits.h:37:21: error: expected ‘=’ before ‘__attribute__’ namespace __gnu_cxx _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/7/ext/numeric_traits.h:37:21: error: expected identifier before ‘__attribute__’ /usr/include/c++/7/ext/numeric_traits.h:37:21: error: expected ‘;’ before ‘__attribute__’ In file included from /usr/include/c++/7/bits/stl_algobase.h:63:0, from /usr/include/c++/7/algorithm:61, from Main.cc:6: /usr/include/c++/7/ext/numeric_traits.h:38:1: error: expected primary-expression before ‘{’ token { ^ In file included from /usr/include/c++/7/cmath:41:0, from /usr/include/c++/7/math.h:36, from Main.cc:3: /usr/include/c++/7/bits/stl_iterator_base_types.h:70:15: error: expected ‘=’ before ‘__attribute__’ namespace std _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/7/bits/stl_iterator_base_types.h:70:15: error: expected identifier before ‘__attribute__’ /usr/include/c++/7/bits/stl_iterator_base_types.h:70:15: error: expected ‘;’ before ‘__attribute__’ In file included from /usr/include/c++/7/bits/stl_algobase.h:65:0, from /usr/include/c++/7/algorithm:61, from Main.cc:6: /usr/include/c++/7/bits/stl_iterator_base_types.h:71:1: error: expected primary-expression before ‘{’ token { ^ In file included from /usr/include/c++/7/cmath:41:0, from /usr/include/c++/7/math.h:36, from Main.cc:3: /usr/include/c++/7/bits/stl_iterator_base_funcs.h:67:15: error: expected ‘=’ before ‘__attribute__’ namespace std _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/7/bits/stl_iterator_base_funcs.h:67:15: error: expected identifier before ‘__attribute__’ /usr/include/c++/7/bits/stl_iterator_base_funcs.h:67:15: error: expected ‘;’ before ‘__attribute__’ In file included from /usr/include/c++/7/bits/stl_algobase.h:66:0, from /usr/include/c++/7/algorithm:61, from Main.cc:6: /usr/include/c++/7/bits/stl_iterator_base_funcs.h:68:1: error: expected primary-expression before ‘{’ token { ^ In file included from /usr/include/c++/7/cmath:41:0, from /usr/include/c++/7/math.h:36, from Main.cc:3: /usr/include/c++/7/bits/ptr_traits.h:37:15: error: expected ‘=’ before ‘__attribute__’ namespace std _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/7/bits/ptr_traits.h:37:15: error: expected identifier before ‘__attribute__’ /usr/include/c++/7/bits/ptr_traits.h:37:15: error: expected ‘;’ before ‘__attribute__’ In file included from /usr/include/c++/7/bits/stl_iterator.h:66:0, from /usr/include/c++/7/bits/stl_algobase.h:67, from /usr/include/c++/7/algorithm:61, from Main.cc:6: /usr/include/c++/7/bits/ptr_traits.h:38:1: error: expected primary-expression before ‘{’ token { ^ In file included from /usr/include/c++/7/cmath:41:0, from /usr/include/c++/7/math.h:36, from Main.cc:3: /usr/include/c++/7/bits/stl_iterator.h:72:15: error: expected ‘=’ before ‘__attribute__’ namespace std _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/7/bits/stl_iterator.h:72:15: error: expected identifier before ‘__attribute__’ /usr/include/c++/7/bits/stl_iterator.h:72:15: error: expected ‘;’ before ‘__attribute__’ In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0, from /usr/include/c++/7/algorithm:61, from Main.cc:6: /usr/include/c++/7/bits/stl_iterator.h:73:1: error: expected primary-expression before ‘{’ token { ^ In file included from /usr/include/c++/7/cmath:41:0, from /usr/include/c++/7/math.h:36, from Main.cc:3: /usr/include/c++/7/bits/stl_iterator.h:749:21: error: expected ‘=’ before ‘__attribute__’ namespace __gnu_cxx _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/7/bits/stl_iterator.h:749:21: error: expected identifier before ‘__attribute__’ /usr/include/c++/7/bits/stl_iterator.h:749:21: error: expected ‘;’ before ‘__attribute__’ In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0, from /usr/include/c++/7/algorithm:61, from Main.cc:6: /usr/include/c++/7/bits/stl_iterator.h:750:1: error: expected primary-expression before ‘{’ token { ^ In file included from /usr/include/c++/7/cmath:41:0, from /usr/include/c++/7/math.h:36, from Main.cc:3: /usr/include/c++/7/bits/stl_iterator.h:980:15: error: expected ‘=’ before ‘__attribute__’ namespace std _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/7/bits/stl_iterator.h:980:15: error: expected identifier before ‘__attribute__’ /usr/include/c++/7/bits/stl_iterator.h:980:15: error: expected ‘;’ before ‘__attribute__’ In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0, from /usr/include/c++/7/algorithm:61, from Main.cc:6: /usr/include/c++/7/bits/stl_iterator.h:981:1: error: expected primary-expression before ‘{’ token { ^ In file included from /usr/include/c++/7/cmath:41:0, from /usr/include/c++/7/math.h:36, from Main.cc:3: /usr/include/c++/7/bits/stl_iterator.h:994:15: error: expected ‘=’ before ‘__attribute__’ namespace std _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/7/bits/stl_iterator.h:994:15: error: expected identifier before ‘__attribute__’ /usr/include/c++/7/bits/stl_iterator.h:994:15: error: expected ‘;’ before ‘__attribute__’ In file included from /usr/include/c++/7/bits/stl_algobase.h:67:0, from /usr/include/c++/7/algorithm:61, from Main.cc:6: /usr/include/c++/7/bits/stl_iterator.h:995:1: error: expected primary-expression before ‘{’ token { ^ In file included from /usr/include/c++/7/bits/stl_algobase.h:69:0, from /usr/include/c++/7/algorithm:61, from Main.cc:6: /usr/include/c++/7/debug/debug.h:48:1: error: ‘namespace’ definition is not allowed here namespace std ^~~~~~~~~ /usr/include/c++/7/debug/debug.h:56:1: error: ‘namespace’ definition is not allowed here namespace __gnu_debug ^~~~~~~~~ In file included from /usr/include/c++/7/bits/stl_algobase.h:71:0, from /usr/include/c++/7/algorithm:61, from Main.cc:6: /usr/include/c++/7/bits/predefined_ops.h:33:1: error: ‘namespace’ definition is not allowed here namespace __gnu_cxx ^~~~~~~~~ In file included from /usr/include/c++/7/cmath:41:0, from /usr/include/c++/7/math.h:36, from Main.cc:3: /usr/include/c++/7/bits/stl_algobase.h:73:15: error: expected ‘=’ before ‘__attribute__’ namespace std _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/7/bits/stl_algobase.h:73:15: error: expected identifier before ‘__attribute__’ /usr/include/c++/7/bits/stl_algobase.h:73:15: error: expected ‘;’ before ‘__attribute__’ In file included from /usr/include/c++/7/algorithm:61:0, from Main.cc:6: /usr/include/c++/7/bits/stl_algobase.h:74:1: error: expected primary-expression before ‘{’ token { ^ In file included from /usr/include/c++/7/cmath:41:0, from /usr/include/c++/7/math.h:36, from Main.cc:3: /usr/include/c++/7/bits/algorithmfwd.h:42:15: error: expected ‘=’ before ‘__attribute__’ namespace std _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/7/bits/algorithmfwd.h:42:15: error: expected identifier before ‘__attribute__’ /usr/include/c++/7/bits/algorithmfwd.h:42:15: error: expected ‘;’ before ‘__attribute__’ In file included from /usr/include/c++/7/bits/stl_algo.h:60:0, from /usr/include/c++/7/algorithm:62, from Main.cc:6: /usr/include/c++/7/bits/algorithmfwd.h:43:1: error: expected primary-expression before ‘{’ token { ^ In file included from /usr/include/c++/7/cmath:41:0, from /usr/include/c++/7/math.h:36, from Main.cc:3: /usr/include/c++/7/bits/stl_heap.h:62:15: error: expected ‘=’ before ‘__attribute__’ namespace std _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/7/bits/stl_heap.h:62:15: error: expected identifier before ‘__attribute__’ /usr/include/c++/7/bits/stl_heap.h:62:15: error: expected ‘;’ before ‘__attribute__’ In file included from /usr/include/c++/7/bits/stl_algo.h:61:0, from /usr/include/c++/7/algorithm:62, from Main.cc:6: /usr/include/c++/7/bits/stl_heap.h:63:1: error: expected primary-expression before ‘{’ token { ^ In file included from /usr/include/c++/7/exception:38:0, from /usr/include/c++/7/new:40, from /usr/include/c++/7/bits/stl_construct.h:59, from /usr/include/c++/7/bits/stl_tempbuf.h:60, from /usr/include/c++/7/bits/stl_algo.h:62, from /usr/include/c++/7/algorithm:62, from Main.cc:6: /usr/include/c++/7/bits/exception.h:40:8: error: expected unqualified-id before string constant extern "C++" { ^~~~~ In file included from /usr/include/c++/7/new:40:0, from /usr/include/c++/7/bits/stl_construct.h:59, from /usr/include/c++/7/bits/stl_tempbuf.h:60, from /usr/include/c++/7/bits/stl_algo.h:62, from /usr/include/c++/7/algorithm:62, from Main.cc:6: /usr/include/c++/7/exception:40:8: error: expected unqualified-id before string constant extern "C++" { ^~~~~ In file included from /usr/include/c++/7/bits/exception_ptr.h:38:0, from /usr/include/c++/7/exception:142, from /usr/include/c++/7/new:40, from /usr/include/c++/7/bits/stl_construct.h:59, from /usr/include/c++/7/bits/stl_tempbuf.h:60, from /usr/include/c++/7/bits/stl_algo.h:62, from /usr/include/c++/7/algorithm:62, from Main.cc:6: /usr/include/c++/7/bits/cxxabi_init_exception.h:50:1: error: ‘namespace’ definition is not allowed here namespace std ^~~~~~~~~ /usr/include/c++/7/bits/cxxabi_init_exception.h:55:1: error: ‘namespace’ definition is not allowed here namespace __cxxabiv1 ^~~~~~~~~ In file included from /usr/include/c++/7/typeinfo:36:0, from /usr/include/c++/7/bits/exception_ptr.h:39, from /usr/include/c++/7/exception:142, from /usr/include/c++/7/new:40, from /usr/include/c++/7/bits/stl_construct.h:59, from /usr/include/c++/7/bits/stl_tempbuf.h:60, from /usr/include/c++/7/bits/stl_algo.h:62, from /usr/include/c++/7/algorithm:62, from Main.cc:6: /usr/include/c++/7/bits/hash_bytes.h:37:1: error: ‘namespace’ definition is not allowed here namespace std ^~~~~~~~~ In file included from /usr/include/c++/7/bits/exception_ptr.h:39:0, from /usr/include/c++/7/exception:142, from /usr/include/c++/7/new:40, from /usr/include/c++/7/bits/stl_construct.h:59, from /usr/include/c++/7/bits/stl_tempbuf.h:60, from /usr/include/c++/7/bits/stl_algo.h:62, from /usr/include/c++/7/algorithm:62, from Main.cc:6: /usr/include/c++/7/typeinfo:41:8: error: expected unqualified-id before string constant extern "C++" { ^~~~~ In file included from /usr/include/c++/7/exception:142:0, from /usr/include/c++/7/new:40, from /usr/include/c++/7/bits/stl_construct.h:59, from /usr/include/c++/7/bits/stl_tempbuf.h:60, from /usr/include/c++/7/bits/stl_algo.h:62, from /usr/include/c++/7/algorithm:62, from Main.cc:6: /usr/include/c++/7/bits/exception_ptr.h:42:8: error: expected unqualified-id before string constant extern "C++" { ^~~~~ In file included from /usr/include/c++/7/exception:143:0, from /usr/include/c++/7/new:40, from /usr/include/c++/7/bits/stl_construct.h:59, from /usr/include/c++/7/bits/stl_tempbuf.h:60, from /usr/include/c++/7/bits/stl_algo.h:62, from /usr/include/c++/7/algorithm:62, from Main.cc:6: /usr/include/c++/7/bits/nested_exception.h:42:8: error: expected unqualified-id before string constant extern "C++" { ^~~~~ In file included from /usr/include/c++/7/bits/stl_construct.h:59:0, from /usr/include/c++/7/bits/stl_tempbuf.h:60, from /usr/include/c++/7/bits/stl_algo.h:62, from /usr/include/c++/7/algorithm:62, from Main.cc:6: /usr/include/c++/7/new:44:8: error: expected unqualified-id before string constant extern "C++" { ^~~~~ In file included from /usr/include/c++/7/cmath:41:0, from /usr/include/c++/7/math.h:36, from Main.cc:3: /usr/include/c++/7/bits/memoryfwd.h:50:15: error: expected ‘=’ before ‘__attribute__’ namespace std _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/7/bits/memoryfwd.h:50:15: error: expected identifier before ‘__attribute__’ /usr/include/c++/7/bits/memoryfwd.h:50:15: error: expected ‘;’ before ‘__attribute__’ In file included from /usr/include/c++/7/bits/alloc_traits.h:35:0, from /usr/include/c++/7/ext/alloc_traits.h:36, from /usr/include/c++/7/bits/stl_construct.h:61, from /usr/include/c++/7/bits/stl_tempbuf.h:60, from /usr/include/c++/7/bits/stl_algo.h:62, from /usr/include/c++/7/algorithm:62, from Main.cc:6: /usr/include/c++/7/bits/memoryfwd.h:51:1: error: expected primary-expression before ‘{’ token { ^ In file included from /usr/include/c++/7/cmath:41:0, from /usr/include/c++/7/math.h:36, from Main.cc:3: /usr/include/c++/7/bits/alloc_traits.h:41:15: error: expected ‘=’ before ‘__attribute__’ namespace std _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/7/bits/alloc_traits.h:41:15: error: expected identifier before ‘__attribute__’ /usr/include/c++/7/bits/alloc_traits.h:41:15: error: expected ‘;’ before ‘__attribute__’ In file included from /usr/include/c++/7/ext/alloc_traits.h:36:0, from /usr/include/c++/7/bits/stl_construct.h:61, from /usr/include/c++/7/bits/stl_tempbuf.h:60, from /usr/include/c++/7/bits/stl_algo.h:62, from /usr/include/c++/7/algorithm:62, from Main.cc:6: /usr/include/c++/7/bits/alloc_traits.h:42:1: error: expected primary-expression before ‘{’ token { ^ In file included from /usr/include/c++/7/cmath:41:0, from /usr/include/c++/7/math.h:36, from Main.cc:3: /usr/include/c++/7/ext/alloc_traits.h:41:21: error: expected ‘=’ before ‘__attribute__’ namespace __gnu_cxx _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/7/ext/alloc_traits.h:41:21: error: expected identifier before ‘__attribute__’ /usr/include/c++/7/ext/alloc_traits.h:41:21: error: expected ‘;’ before ‘__attribute__’ In file included from /usr/include/c++/7/bits/stl_construct.h:61:0, from /usr/include/c++/7/bits/stl_tempbuf.h:60, from /usr/include/c++/7/bits/stl_algo.h:62, from /usr/include/c++/7/algorithm:62, from Main.cc:6: /usr/include/c++/7/ext/alloc_traits.h:42:1: error: expected primary-expression before ‘{’ token { ^ In file included from /usr/include/c++/7/cmath:41:0, from /usr/include/c++/7/math.h:36, from Main.cc:3: /usr/include/c++/7/bits/stl_construct.h:63:15: error: expected ‘=’ before ‘__attribute__’ namespace std _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/7/bits/stl_construct.h:63:15: error: expected identifier before ‘__attribute__’ /usr/include/c++/7/bits/stl_construct.h:63:15: error: expected ‘;’ before ‘__attribute__’ In file included from /usr/include/c++/7/bits/stl_tempbuf.h:60:0, from /usr/include/c++/7/bits/stl_algo.h:62, from /usr/include/c++/7/algorithm:62, from Main.cc:6: /usr/include/c++/7/bits/stl_construct.h:64:1: error: expected primary-expression before ‘{’ token { ^ In file included from /usr/include/c++/7/cmath:41:0, from /usr/include/c++/7/math.h:36, from Main.cc:3: /usr/include/c++/7/bits/stl_tempbuf.h:62:15: error: expected ‘=’ before ‘__attribute__’ namespace std _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/7/bits/stl_tempbuf.h:62:15: error: expected identifier before ‘__attribute__’ /usr/include/c++/7/bits/stl_tempbuf.h:62:15: error: expected ‘;’ before ‘__attribute__’ In file included from /usr/include/c++/7/bits/stl_algo.h:62:0, from /usr/include/c++/7/algorithm:62, from Main.cc:6: /usr/include/c++/7/bits/stl_tempbuf.h:63:1: error: expected primary-expression before ‘{’ token { ^ In file included from /usr/include/c++/7/cmath:41:0, from /usr/include/c++/7/math.h:36, from Main.cc:3: /usr/include/c++/7/limits:158:15: error: expected ‘=’ before ‘__attribute__’ namespace std _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/7/limits:158:15: error: expected identifier before ‘__attribute__’ /usr/include/c++/7/limits:158:15: error: expected ‘;’ before ‘__attribute__’ In file included from /usr/include/c++/7/bits/uniform_int_dist.h:35:0, from /usr/include/c++/7/bits/stl_algo.h:66, from /usr/include/c++/7/algorithm:62, from Main.cc:6: /usr/include/c++/7/limits:159:1: error: expected primary-expression before ‘{’ token { ^ In file included from /usr/include/c++/7/cmath:41:0, from /usr/include/c++/7/math.h:36, from Main.cc:3: /usr/include/c++/7/bits/uniform_int_dist.h:37:15: error: expected ‘=’ before ‘__attribute__’ namespace std _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/7/bits/uniform_int_dist.h:37:15: error: expected identifier before ‘__attribute__’ /usr/include/c++/7/bits/uniform_int_dist.h:37:15: error: expected ‘;’ before ‘__attribute__’ In file included from /usr/include/c++/7/bits/stl_algo.h:66:0, from /usr/include/c++/7/algorithm:62, from Main.cc:6: /usr/include/c++/7/bits/uniform_int_dist.h:38:1: error: expected primary-expression before ‘{’ token { ^ In file included from /usr/include/c++/7/cmath:41:0, from /usr/include/c++/7/math.h:36, from Main.cc:3: /usr/include/c++/7/bits/stl_algo.h:71:15: error: expected ‘=’ before ‘__attribute__’ namespace std _GLIBCXX_VISIBILITY(default) ^ /usr/include/c++/7/bits/stl_algo.h:71:15: error: expected identifier before ‘__attribute__’ /usr/include/c++/7/bits/stl_algo.h:71:15: error: expected ‘;’ before ‘__attribute__’ In file included from /usr/include/c++/7/algorithm:62:0, from Main.cc:6: /usr/include/c++/7/bits/stl_algo.h:72:1: error: expected primary-expression before ‘{’ token { ^ Main.cc:8:23: error: a function-definition is not allowed here before ‘{’ token int gcd(int a, int b) { ^ Main.cc:14:12: error: a function-definition is not allowed here before ‘{’ token int main() { ^ Main.cc:47:1: error: expected ‘}’ at end of input } ^