Compiler output
ver.cpp: In function 'int main(int, char**)':
ver.cpp:55:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0; j<s[i].size(); ++j) {
^
ver.cpp: At global scope:
ver.cpp:41:14: warning: unused parameter 'argc' [-Wunused-parameter]
int main(int argc, char *argv[]) {
^
prog.cpp:33:0: warning: "M_PI" redefined
#define M_PI 3.141592653589793
^
In file included from /usr/include/c++/4.9/cmath:44:0,
from /usr/include/c++/4.9/complex:44,
from prog.cpp:10:
/usr/include/math.h:372:0: note: this is the location of the previous definition
# define M_PI 3.14159265358979323846 /* pi */
^
prog.cpp: In function 'bool contains(std::string, std::string)':
prog.cpp:49:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < a.size(); i++)
^
prog.cpp:51:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (ptr < b.size() && b[ptr] == a[i])
^
prog.cpp:54:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
return (ptr == b.size());
^
prog.cpp: In function 'bool check(std::string, std::vector<std::basic_string<char> >)':
prog.cpp:59:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < v.size(); i++)
^
prog.cpp: In function 'std::string solve(std::vector<std::basic_string<char> >, int)':
prog.cpp:105:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < v.size(); i++)
^
prog.cpp:108:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < v[i].size(); j++)
^
prog.cpp:112:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (id == entries[need].size())
^