Compiler output
prog.cpp: In function 'int main()':
prog.cpp:36:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(ptr[i] < c[i].size())
^
prog.cpp:48:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(ptr[i] < c[i].size())
^
prog.cpp:52:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(ptr[i] == c[i].size())
^
prog.cpp:11:15: warning: unused variable 'j' [-Wunused-variable]
int n, i, j, ok;
^
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[]) {
^