fork download
  1. const int CONSTANT_A=1;
  2. #ifdef OPENMP
  3.  
  4. void test(int a,int b){
  5. if(CONSTANT_A!=0){
  6. printf("%d-%d",a,b);
  7. }
  8. }
  9. #endif OPENMP
  10.  
  11. int main(){
  12. int a,b=3;
  13. test(a,b);
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:9:8: warning: extra tokens at end of #endif directive [-Wendif-labels]
 #endif OPENMP
        ^~~~~~
prog.c: In function ‘main’:
prog.c:13:5: warning: implicit declaration of function ‘test’ [-Wimplicit-function-declaration]
     test(a,b);
     ^~~~
prog.c:13:5: warning: ‘a’ is used uninitialized in this function [-Wuninitialized]
     test(a,b);
     ^~~~~~~~~
/home/eaT92K/ccOlnvBM.o: In function `main':
prog.c:(.text.startup+0xe): undefined reference to `test'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty