messy.cpp:21:6: error: variable or field 'add_element' declared void
21 | void add_element(str s) {}
| ^~~~~~~~~~~
messy.cpp:4:13: error: 'string' was not declared in this scope
4 | #define str string
| ^~~~~~
messy.cpp:21:18: note: in expansion of macro 'str'
21 | void add_element(str s) {}
| ^~~
messy.cpp:4:13: note: suggested alternatives:
4 | #define str string
| ^~~~~~
messy.cpp:21:18: note: in expansion of macro 'str'
21 | void add_element(str s) {}
| ^~~
In file included from /usr/include/c++/13/string:41,
from /usr/include/c++/13/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:52,
from messy.cpp:1:
/usr/include/c++/13/bits/stringfwd.h:77:33: note: 'std::string'
77 | typedef basic_string<char> string;
| ^~~~~~
/usr/include/c++/13/string:66:11: note: 'std::pmr::string'
66 | using string = basic_string<char>;
| ^~~~~~
messy.cpp:4:13: error: 'string' was not declared in this scope
4 | #define str string
| ^~~~~~
messy.cpp:23:20: note: in expansion of macro 'str'
23 | bool check_element(str s) {
| ^~~
messy.cpp:4:13: note: suggested alternatives:
4 | #define str string
| ^~~~~~
messy.cpp:23:20: note: in expansion of macro 'str'
23 | bool check_element(str s) {
| ^~~
/usr/include/c++/13/bits/stringfwd.h:77:33: note: 'std::string'
77 | typedef basic_string<char> string;
| ^~~~~~
/usr/include/c++/13/string:66:11: note: 'std::pmr::string'
66 | using string = basic_string<char>;
| ^~~~~~
messy.cpp:5:13: error: 'vector' does not name a type
5 | #define vec vector
| ^~~~~~
messy.cpp:26:1: note: in expansion of macro 'vec'
26 | vec<int> v(int n, int w, int r) {
| ^~~
messy.h:1:9: warning: #pragma once in main file
1 | #pragma once
| ^~~~
messy_c.h:1:9: warning: #pragma once in main file
1 | #pragma once
| ^~~~