/in/foo.cc: In function 'int main()':
/in/foo.cc:19:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (location < pre_path.size()) {
~~~~~~~~~^~~~~~~~~~~~~~~~~
/in/foo.cc:20:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (; location < pre_path.size() && pre_path[location] != '.'; location++) path.push_back(pre_path[location]);
~~~~~~~~~^~~~~~~~~~~~~~~~~
/in/foo.cc:21:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (location + 1 < pre_path.size() && pre_path[location + 1] == '.'){
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/in/foo.cc:25:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (location < pre_path.size() && pre_path[location] == '/') location++;
~~~~~~~~~^~~~~~~~~~~~~~~~~
/in/foo.cc:28:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
else if(location<pre_path.size()) path.push_back(pre_path[location+1]);
~~~~~~~~^~~~~~~~~~~~~~~~