Skip to content

Instantly share code, notes, and snippets.

@mosbth
Created April 19, 2021 09:27
Show Gist options
  • Save mosbth/e5f53fcf2060feb80f4bf66db16df118 to your computer and use it in GitHub Desktop.
Save mosbth/e5f53fcf2060feb80f4bf66db16df118 to your computer and use it in GitHub Desktop.
main.c:20:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
sayHi(){
^~~~~
main.c: In function ‘sayHi’:
main.c:26:10: warning: passing argument 1 of ‘puts’ from incompatible pointer type [-Wincompatible-pointer-types]
puts(name);}
^~~~
In file included from main.c:1:
/usr/include/stdio.h:638:30: note: expected ‘const char *’ but argument is of type ‘char **’
extern int puts (const char *__s);
~~~~~~~~~~~~^~~
main.c: At top level:
main.c:28:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
meny(){
^~~~
main.c: In function ‘meny’:
main.c:35:14: warning: implicit declaration of function ‘isDigit’; did you mean ‘isfinite’? [-Wimplicit-function-declaration]
choice = isDigit();
^~~~~~~
isfinite
main.c:39:9: warning: implicit declaration of function ‘printSubMeny’ [-Wimplicit-function-declaration]
printSubMeny();
^~~~~~~~~~~~
main.c:41:26: warning: implicit declaration of function ‘beforeTest’ [-Wimplicit-function-declaration]
if (choice == 1){beforeTest(practice,1);}
^~~~~~~~~~
main.c:50:26: warning: implicit declaration of function ‘goTest’ [-Wimplicit-function-declaration]
if (choice == 1){goTest(test, 1);}
^~~~~~
main.c: At top level:
main.c:63:6: warning: conflicting types for ‘printSubMeny’
void printSubMeny(){
^~~~~~~~~~~~
main.c:39:9: note: previous implicit declaration of ‘printSubMeny’ was here
printSubMeny();
^~~~~~~~~~~~
main.c:71:6: warning: conflicting types for ‘beforeTest’
void beforeTest(int num, int sign){
^~~~~~~~~~
main.c:41:26: note: previous implicit declaration of ‘beforeTest’ was here
if (choice == 1){beforeTest(practice,1);}
^~~~~~~~~~
main.c: In function ‘beforeTest’:
main.c:76:25: warning: implicit declaration of function ‘getRandom’; did you mean ‘srandom’? [-Wimplicit-function-declaration]
if(random){sign=getRandom(2) + 1;}
^~~~~~~~~
srandom
main.c:79:13: warning: implicit declaration of function ‘checkForLimits’ [-Wimplicit-function-declaration]
a = checkForLimits(a,b);
^~~~~~~~~~~~~~
main.c:80:9: warning: implicit declaration of function ‘printQuestion’ [-Wimplicit-function-declaration]
printQuestion(a,b, sign);
^~~~~~~~~~~~~
main.c:82:13: warning: implicit declaration of function ‘getSignAns’; did you mean ‘getline’? [-Wimplicit-function-declaration]
c = getSignAns(a,b,sign);
^~~~~~~~~~
getline
main.c:84:13: warning: implicit declaration of function ‘getResponse’ [-Wimplicit-function-declaration]
getResponse('Y');
^~~~~~~~~~~
main.c: At top level:
main.c:98:6: warning: conflicting types for ‘goTest’
void goTest(int num, int sign){
^~~~~~
main.c:50:26: note: previous implicit declaration of ‘goTest’ was here
if (choice == 1){goTest(test, 1);}
^~~~~~
main.c:153:6: warning: conflicting types for ‘printQuestion’
void printQuestion(int a, int b, int sign){
^~~~~~~~~~~~~
main.c:80:9: note: previous implicit declaration of ‘printQuestion’ was here
printQuestion(a,b, sign);
^~~~~~~~~~~~~
main.c:196:6: warning: conflicting types for ‘getResponse’
void getResponse(char a){
^~~~~~~~~~~
main.c:84:13: note: previous implicit declaration of ‘getResponse’ was here
getResponse('Y');
^~~~~~~~~~~
main.c: In function ‘main’:
main.c:209:11: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
srand(time(NULL)); // reset random clock
^~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment