solution.c: In function ‘main’ Line 41: Char 13: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[10]’ [-Wformat=] [solution.c] scanf("%s" , &name1); ~^ ~~~~~~ Line 44: Char 13: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[10]’ [-Wformat=] [solution.c] scanf("%s" , &name2); ~^ ~~~~~~ solution.c: At top level Line 57: Char 5: error: redefinition of ‘main’ [solution.c] int main(int argc, char *argv[]) { ^~~~ It is throwing this error, i tried to fix but it didnt work
solution.c: In function ‘main’
Line 41: Char 13: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[10]’ [-Wformat=] [solution.c]
scanf("%s" , &name1);
~^ ~~~~~~
Line 44: Char 13: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[10]’ [-Wformat=] [solution.c]
scanf("%s" , &name2);
~^ ~~~~~~
solution.c: At top level
Line 57: Char 5: error: redefinition of ‘main’ [solution.c]
int main(int argc, char *argv[]) {
^~~~
It is throwing this error, i tried to fix but it didnt work
must improve yourself.