/in/foo.cc: In function 'int main()':
/in/foo.cc:45:24: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[10]' [-Wformat=]
scanf("%s%s",&k+1,&s+1);
^
/in/foo.cc:45:24: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'char (*)[10]' [-Wformat=]
/in/foo.cc:14:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define REP(i,n) for(int i=1;i<=n;i++)
/in/foo.cc:46:6:
REP(i,strlen(s+1)) ans[i]=(change(s[i])+change(k[i%strlen(k)+1])+26)%26+s[i]>='A'&&s[i]<='Z' ? 'A':'a';
~~~~~~~~~~~~~
/in/foo.cc:46:2: note: in expansion of macro 'REP'
REP(i,strlen(s+1)) ans[i]=(change(s[i])+change(k[i%strlen(k)+1])+26)%26+s[i]>='A'&&s[i]<='Z' ? 'A':'a';
^~~