foo.cc: In function 'bool correct(std::string)':
foo.cc:49:22: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
49 | for(int i=1;i<x.size();i++)
| ~^~~~~~~~~
foo.cc:50:31: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
50 | if(x[i-1]=='.'&&x[i]=='.'||x[i-1]=='.'&&x[i]==':')
foo.cc:56:22: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
56 | for(int i=2;i<x.size();i++)
| ~^~~~~~~~~
正在同步测试数据,请稍后
Found 20 testcases.
[Hydro](https://hydro.ac)提供评测服务