Compiler output
prog.cpp: In function 'void inversBig(int)':
prog.cpp:40:43: warning: operation on 'b[j]' may be undefined [-Wsequence-point]
b[i] = b[i] + b[j] - (b[j] = b[i]);
^
prog.cpp: In function 'void inversSmall(int)':
prog.cpp:125:43: warning: operation on 'b[j]' may be undefined [-Wsequence-point]
b[i] = b[i] + b[j] - (b[j] = b[i]);
^
prog.cpp: In function 'int main()':
prog.cpp:181:18: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[5005]' [-Wformat=]
scanf("%s",&a);
^
prog.cpp:182:18: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[5005]' [-Wformat=]
scanf("%s",&b);
^