prog.c: In function ‘main’:
prog.c:5:16: warning: multi-character character constant [-Wmultichar]
char target = '-59';
^~~~~
prog.c:5:16: warning: overflow in implicit constant conversion [-Woverflow]
prog.c:6:11: warning: multi-character character constant [-Wmultichar]
char str='-60';
^~~~~
prog.c:6:11: warning: overflow in implicit constant conversion [-Woverflow]
prog.c:7:2: error: ‘result’ undeclared (first use in this function)
result = strcmp(target,str);
^~~~~~
prog.c:7:2: note: each undeclared identifier is reported only once for each function it appears in
In file included from /usr/include/string.h:630:0,
from prog.c:2:
prog.c:7:18: warning: passing argument 1 of ‘__builtin_strlen’ makes pointer from integer without a cast [-Wint-conversion]
result = strcmp(target,str);
^
prog.c:7:18: note: expected ‘const char *’ but argument is of type ‘char’
prog.c:7:25: warning: passing argument 1 of ‘__builtin_strlen’ makes pointer from integer without a cast [-Wint-conversion]
result = strcmp(target,str);
^
prog.c:7:25: note: expected ‘const char *’ but argument is of type ‘char’
prog.c:7:18: warning: passing argument 1 of ‘__builtin_strcmp’ makes pointer from integer without a cast [-Wint-conversion]
result = strcmp(target,str);
^
prog.c:7:18: note: expected ‘const char *’ but argument is of type ‘char’
prog.c:7:25: warning: passing argument 2 of ‘__builtin_strcmp’ makes pointer from integer without a cast [-Wint-conversion]
result = strcmp(target,str);
^
prog.c:7:25: note: expected ‘const char *’ but argument is of type ‘char’
prog.c:7:18: warning: passing argument 1 of ‘__builtin_strlen’ makes pointer from integer without a cast [-Wint-conversion]
result = strcmp(target,str);
^
prog.c:7:18: note: expected ‘const char *’ but argument is of type ‘char’
prog.c:7:18: warning: passing argument 1 of ‘__builtin_strcmp’ makes pointer from integer without a cast [-Wint-conversion]
result = strcmp(target,str);
^
prog.c:7:18: note: expected ‘const char *’ but argument is of type ‘char’
prog.c:7:25: warning: passing argument 2 of ‘__builtin_strcmp’ makes pointer from integer without a cast [-Wint-conversion]
result = strcmp(target,str);
^
prog.c:7:25: note: expected ‘const char *’ but argument is of type ‘char’
prog.c:7:25: warning: passing argument 1 of ‘__builtin_strlen’ makes pointer from integer without a cast [-Wint-conversion]
result = strcmp(target,str);
^
prog.c:7:25: note: expected ‘const char *’ but argument is of type ‘char’
prog.c:7:18: warning: passing argument 1 of ‘__builtin_strcmp’ makes pointer from integer without a cast [-Wint-conversion]
result = strcmp(target,str);
^
prog.c:7:18: note: expected ‘const char *’ but argument is of type ‘char’
prog.c:7:25: warning: passing argument 2 of ‘__builtin_strcmp’ makes pointer from integer without a cast [-Wint-conversion]
result = strcmp(target,str);
^
prog.c:7:25: note: expected ‘const char *’ but argument is of type ‘char’
prog.c:7:18: warning: passing argument 1 of ‘__builtin_strcmp’ makes pointer from integer without a cast [-Wint-conversion]
result = strcmp(target,str);
^
prog.c:7:18: note: expected ‘const char *’ but argument is of type ‘char’
prog.c:7:25: warning: passing argument 2 of ‘__builtin_strcmp’ makes pointer from integer without a cast [-Wint-conversion]
result = strcmp(target,str);
^
prog.c:7:25: note: expected ‘const char *’ but argument is of type ‘char’
prog.c:10:2: error: expected ‘;’ before ‘return’
return 0;
^~~~~~