Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
main.c: In function ‘main’:
main.c:23:9: warning: implicit declaration of function ‘printMainMenu’ [-Wimplicit-function-declaration]
printMainMenu();
^~~~~~~~~~~~~
main.c:27:13: warning: implicit declaration of function ‘printSubMenu’ [-Wimplicit-function-declaration]
printSubMenu();
^~~~~~~~~~~~
main.c:33:17: warning: implicit declaration of function ‘handlePractice’ [-Wimplicit-function-declaration]
handlePractice(choice); //Call function if valid choice
^~~~~~~~~~~~~~
main.c:43:17: warning: implicit declaration of function ‘test’ [-Wimplicit-function-declaration]
test(choice); //Choice is valid
^~~~
main.c:44:17: warning: implicit declaration of function ‘testResult’ [-Wimplicit-function-declaration]
testResult(); //Test is done
^~~~~~~~~~
main.c: At top level:
main.c:56:6: warning: conflicting types for ‘printMainMenu’
void printMainMenu()
^~~~~~~~~~~~~
main.c:23:9: note: previous implicit declaration of ‘printMainMenu’ was here
printMainMenu();
^~~~~~~~~~~~~
main.c:64:6: warning: conflicting types for ‘printSubMenu’
void printSubMenu()
^~~~~~~~~~~~
main.c:27:13: note: previous implicit declaration of ‘printSubMenu’ was here
printSubMenu();
^~~~~~~~~~~~
main.c:71:6: warning: conflicting types for ‘handlePractice’
void handlePractice(int choice)
^~~~~~~~~~~~~~
main.c:33:17: note: previous implicit declaration of ‘handlePractice’ was here
handlePractice(choice); //Call function if valid choice
^~~~~~~~~~~~~~
main.c: In function ‘handlePractice’:
main.c:76:13: warning: implicit declaration of function ‘addition’ [-Wimplicit-function-declaration]
addition(i);
^~~~~~~~
main.c:81:13: warning: implicit declaration of function ‘subtraction’ [-Wimplicit-function-declaration]
subtraction(i);
^~~~~~~~~~~
main.c: At top level:
main.c:96:6: warning: conflicting types for ‘addition’
void addition(int i)
^~~~~~~~
main.c:76:13: note: previous implicit declaration of ‘addition’ was here
addition(i);
^~~~~~~~
main.c:110:6: warning: conflicting types for ‘subtraction’
void subtraction(int i)
^~~~~~~~~~~
main.c:81:13: note: previous implicit declaration of ‘subtraction’ was here
subtraction(i);
^~~~~~~~~~~
main.c:126:6: warning: conflicting types for ‘test’
void test(int choice)
^~~~
main.c:43:17: note: previous implicit declaration of ‘test’ was here
test(choice); //Choice is valid
^~~~
main.c: In function ‘test’:
main.c:130:13: warning: implicit declaration of function ‘testAddition’; did you mean ‘addition’? [-Wimplicit-function-declaration]
testAddition(i);
^~~~~~~~~~~~
addition
main.c:135:13: warning: implicit declaration of function ‘testSubtraction’; did you mean ‘subtraction’? [-Wimplicit-function-declaration]
testSubtraction(i);
^~~~~~~~~~~~~~~
subtraction
main.c: At top level:
main.c:149:6: warning: conflicting types for ‘testAddition’
void testAddition(int i)
^~~~~~~~~~~~
main.c:130:13: note: previous implicit declaration of ‘testAddition’ was here
testAddition(i);
^~~~~~~~~~~~
main.c: In function ‘testAddition’:
main.c:160:5: warning: implicit declaration of function ‘validateAnswer’ [-Wimplicit-function-declaration]
validateAnswer(i);
^~~~~~~~~~~~~~
main.c:164:5: warning: implicit declaration of function ‘strcpy’ [-Wimplicit-function-declaration]
strcpy(questions[i], question);
^~~~~~
main.c:164:5: warning: incompatible implicit declaration of built-in function ‘strcpy’
main.c:164:5: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
main.c:3:1:
+#include <string.h>
main.c:164:5:
strcpy(questions[i], question);
^~~~~~
main.c: At top level:
main.c:167:6: warning: conflicting types for ‘testSubtraction’
void testSubtraction(int i)
^~~~~~~~~~~~~~~
main.c:135:13: note: previous implicit declaration of ‘testSubtraction’ was here
testSubtraction(i);
^~~~~~~~~~~~~~~
main.c: In function ‘testSubtraction’:
main.c:184:5: warning: incompatible implicit declaration of built-in function ‘strcpy’
strcpy(questions[i], question);
^~~~~~
main.c:184:5: note: include ‘<string.h>’ or provide a declaration of ‘strcpy’
main.c: At top level:
main.c:187:6: warning: conflicting types for ‘validateAnswer’
void validateAnswer(int i)
^~~~~~~~~~~~~~
main.c:160:5: note: previous implicit declaration of ‘validateAnswer’ was here
validateAnswer(i);
^~~~~~~~~~~~~~
main.c:193:6: warning: conflicting types for ‘testResult’
void testResult()
^~~~~~~~~~
main.c:44:17: note: previous implicit declaration of ‘testResult’ was here
testResult(); //Test is done
^~~~~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment