foo.cc: In function 'void grammerAnalysis(std::__cxx11::string)':
foo.cc:45:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < talk.length(); i++)
~~^~~~~~~~~~~~~~~
foo.cc:74:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = talk_start; i <= talk.length(); i++)
~~^~~~~~~~~~~~~~~~
foo.cc:119:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < content.length(); i++)
~~^~~~~~~~~~~~~~~~~~
foo.cc: In function 'void analyzer()':
foo.cc:187:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int tki = 0; tki < cons.size(); tki++)
~~~~^~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:333:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("P1039.in", "r", stdin);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:334:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("P1039.out", "w", stdout);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
自豪的采用 HydroJudger 进行评测(github.com/hydro-dev/HydroJudger)
{"receive":"2020-06-22T13:36:36.368Z","handle":"2020-06-22T13:36:36.368Z","done":"2020-06-22T13:36:38.072Z"}