palindrome.cpp: In function 'int longestPalSubstr(std::string)':
palindrome.cpp:16:6: warning: variable 'start' set but not used [-Wunused-but-set-variable]
16 | int start = 0;
| ^~~~~
palindrome.cpp: In function 'int main()':
palindrome.cpp:45:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
45 | freopen("palindrome.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
palindrome.cpp:46:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
46 | freopen("palindrome.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~