Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- david@nata-HP-Laptop-15s-eq2xxx:~$ gcc main.c -std=c99 -o CGoL
- main.c: In function ‘draw’:
- main.c:77:21: warning: embedded ‘\0’ in format [-Wformat-contains-nul]
- 77 | printf("%s\n\0",lines[i]);
- | ^~
- main.c: In function ‘handleCmd’:
- main.c:192:13: error: a label can only be part of a statement and a declaration is not a statement
- 192 | int rS=atoi(arg0);
- | ^~~
- main.c:193:13: error: expected expression before ‘int’
- 193 | int rR=atoi(arg1);
- | ^~~
- main.c:205:25: error: ‘rR’ undeclared (first use in this function); did you mean ‘rS’?
- 205 | int dig=rR%10;
- | ^~
- | rS
- main.c:205:25: note: each undeclared identifier is reported only once for each function it appears in
- main.c: In function ‘main’:
- main.c:225:13: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[16]’ [-Wformat=]
- 225 | scanf("%s %s %s",&arg0,&arg1,&arg2);
- | ~^ ~~~~~
- | | |
- | char * char (*)[16]
- main.c:225:16: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘char (*)[16]’ [-Wformat=]
- 225 | scanf("%s %s %s",&arg0,&arg1,&arg2);
- | ~^ ~~~~~
- | | |
- | char * char (*)[16]
- main.c:225:19: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘char (*)[16]’ [-Wformat=]
- 225 | scanf("%s %s %s",&arg0,&arg1,&arg2);
- | ~^ ~~~~~
- | | |
- | char * char (*)[16]
- main.c:250:21: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[8]’ [-Wformat=]
- 250 | scanf("%s %s %s %s %s",&cmd,&arg0,&arg1,&arg2,&arg3);
- | ~^ ~~~~
- | | |
- | char * char (*)[8]
- main.c:250:24: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘char (*)[16]’ [-Wformat=]
- 250 | scanf("%s %s %s %s %s",&cmd,&arg0,&arg1,&arg2,&arg3);
- | ~^ ~~~~~
- | | |
- | char * char (*)[16]
- main.c:250:27: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘char (*)[16]’ [-Wformat=]
- 250 | scanf("%s %s %s %s %s",&cmd,&arg0,&arg1,&arg2,&arg3);
- | ~^ ~~~~~
- | | |
- | char * char (*)[16]
- main.c:250:30: warning: format ‘%s’ expects argument of type ‘char *’, but argument 5 has type ‘char (*)[16]’ [-Wformat=]
- 250 | scanf("%s %s %s %s %s",&cmd,&arg0,&arg1,&arg2,&arg3);
- | ~^ ~~~~~
- | | |
- | char * char (*)[16]
- main.c:250:33: warning: format ‘%s’ expects argument of type ‘char *’, but argument 6 has type ‘char (*)[16]’ [-Wformat=]
- 250 | scanf("%s %s %s %s %s",&cmd,&arg0,&arg1,&arg2,&arg3);
- | ~^ ~~~~~
- | | |
- | char * char (*)[16]
- main.c:263:17: warning: implicit declaration of function ‘usleep’; did you mean ‘sleep’? [-Wimplicit-function-declaration]
- 263 | usleep(interval*1000);
- | ^~~~~~
- | sleep
Advertisement
Add Comment
Please, Sign In to add comment