prog.cpp: In function ‘char* decode(char*, int)’:
prog.cpp:13:10: error: ‘s’ was not declared in this scope
char *p= s;
^
prog.cpp: In function ‘int main()’:
prog.cpp:21:11: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
char *ss="hello";
^~~~~~~
prog.cpp:22:20: error: too few arguments to function ‘char* encode(char*, int)’
char * a=encode(ss);
^
prog.cpp:2:7: note: declared here
char *encode(char *s,int offset)
^~~~~~
prog.cpp:24:18: error: too few arguments to function ‘char* decode(char*, int)’
char *b=decode(a);
^
prog.cpp:11:7: note: declared here
char *decode(char *sm ,int iffset)
^~~~~~