necklace.cpp: In function 'std::vector<int> kmp(std::string)':
necklace.cpp:23:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
23 | for(int i = 1; i < s.size(); ++i)
| ~~^~~~~~~~~~
necklace.cpp: In function 'int main()':
necklace.cpp:7:20: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
7 | #define nx freopen (task".inp","r",stdin), freopen (task".out","w",stdout);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
necklace.cpp:60:31: note: in expansion of macro 'nx'
60 | if (ifstream(task".inp")) nx
| ^~
necklace.cpp:7:52: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
7 | #define nx freopen (task".inp","r",stdin), freopen (task".out","w",stdout);
| ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
necklace.cpp:60:31: note: in expansion of macro 'nx'
60 | if (ifstream(task".inp")) nx
| ^~