Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Function practice

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 0.15 sec, absolute service time: 0,28 sec 
edit mode |  history  | discussion
Error(s):
source_file.c:3:10: warning: ISO C99 requires whitespace after the macro name
 #define a=5;
          ^
source_file.c:4:10: warning: ISO C99 requires whitespace after the macro name
 #define b=10;
          ^
source_file.c:3:10: error: expected ‘;’, ‘,’ or ‘)’ before ‘=’ token
 #define a=5;
          ^
source_file.c:5:17: note: in expansion of macro ‘a’
 int findMax(int a,int b){
                 ^
source_file.c: In function ‘main’:
source_file.c:3:10: error: expected ‘;’, ‘,’ or ‘)’ before ‘=’ token
 #define a=5;
          ^
source_file.c:17:21: note: in expansion of macro ‘a’
     int findMax(int a,int b);
                     ^

        

    
                
λ
.NET NoSQL database for rapid development