foo.cc:5:23: error: 'Max' was not declared in this scope
char str[Maxn],ansstr[Max],tmp[Max];
^~~
foo.cc:5:23: note: suggested alternative: 'Maxn'
char str[Maxn],ansstr[Max],tmp[Max];
^~~
Maxn
foo.cc:5:32: error: 'Max' was not declared in this scope
char str[Maxn],ansstr[Max],tmp[Max];
^~~
foo.cc:5:32: note: suggested alternative: 'Maxn'
char str[Maxn],ansstr[Max],tmp[Max];
^~~
Maxn
foo.cc: In function 'int out()':
foo.cc:35:15: error: 'ansstr' was not declared in this scope
printf("%c",ansstr[i]);
^~~~~~
foo.cc:35:15: note: suggested alternative: 'anslen'
printf("%c",ansstr[i]);
^~~~~~
anslen
foo.cc: In function 'int main()':
foo.cc:44:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0;i < strlen(str);i++)
~~^~~~~~~~~~~~~
foo.cc:48:4: error: 'ansstr' was not declared in this scope
ansstr[anslen] = str[i];
^~~~~~
foo.cc:48:4: note: suggested alternative: 'anslen'
ansstr[anslen] = str[i];
^~~~~~
anslen
foo.cc:55:4: error: 'ansstr' was not declared in this scope
ansstr[anslen] = str[i];
^~~~~~
foo.cc:55:4: note: suggested alternative: 'anslen'
ansstr[anslen] = str[i];
^~~~~~
anslen
foo.cc:68:11: error: 'tmp' was not declared in this scope
tmp[tmplen++] = char(j);
^~~
foo.cc:68:11: note: suggested alternative: 'bcmp'
tmp[tmplen++] = char(j);
^~~
bcmp
foo.cc:72:11: error: 'tmp' was not declared in this scope
tmp[tmplen++] = char(j-32);
^~~
foo.cc:72:11: note: suggested alternative: 'bcmp'
tmp[tmplen++] = char(j-32);
^~~
bcmp
foo.cc:76:8: error: 'tmp' was not declared in this scope
tmp[tmplen++] = '*';
^~~
foo.cc:76:8: note: suggested alternative: 'bcmp'
tmp[tmplen++] = '*';
^~~
bcmp
foo.cc:84:7: error: 'ansstr' was not declared in this scope
ansstr[anslen] = tmp[j];
^~~~~~
foo.cc:84:7: note: suggested alternative: 'anslen'
ansstr[anslen] = tmp[j];
^~~~~~
anslen
foo.cc:84:24: error: 'tmp' was not declared in this scope
ansstr[anslen] = tmp[j];
^~~
foo.cc:84:24: note: suggested alternative: 'bcmp'
ansstr[anslen] = tmp[j];
^~~
bcmp
foo.cc:92:7: error: 'ansstr' was not declared in this scope
ansstr[anslen] = tmp[tmplen-j-1];
^~~~~~
foo.cc:92:7: note: suggested alternative: 'anslen'
ansstr[anslen] = tmp[tmplen-j-1];
^~~~~~
anslen
foo.cc:92:24: error: 'tmp' was not declared in this scope
ansstr[anslen] = tmp[tmplen-j-1];
^~~
foo.cc:92:24: note: suggested alternative: 'bcmp'
ansstr[anslen] = tmp[tmplen-j-1];
^~~
bcmp
foo.cc:42:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d\n",&p1,&p2,&p3);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~