fork(1) download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <math.h>
  4.  
  5. int main(){
  6. //int x,y;
  7. double a,b;
  8. double wynik;
  9. int wynik2;
  10. printf("podaj podstawe potegi: ");
  11. scanf_s("%lf", &a);
  12. printf("\npodaj wykladnik potegi: ");
  13. scanf_s("%lf", &b);
  14. wynik=pow(a,b);
  15. //wynik=a/b*(3.0/4.0);
  16. printf("\n%lf",wynik);
  17. system("pause");
  18. return 0;
  19. }
Compilation error #stdin compilation error #stdout 0s 2116KB
stdin
2
3
compilation info
prog.c: In function ‘main’:
prog.c:11:5: warning: implicit declaration of function ‘scanf_s’; did you mean ‘scanf’? [-Wimplicit-function-declaration]
     scanf_s("%lf", &a);
     ^~~~~~~
     scanf
prog.c:9:9: warning: unused variable ‘wynik2’ [-Wunused-variable]
     int wynik2;
         ^~~~~~
prog.c:17:5: warning: ignoring return value of ‘system’, declared with attribute warn_unused_result [-Wunused-result]
     system("pause");
     ^~~~~~~~~~~~~~~
/usr/bin/ld: /home/Qg9Ltb/cczryqyk.o: in function `main':
prog.c:(.text.startup+0x34): undefined reference to `scanf_s'
/usr/bin/ld: prog.c:(.text.startup+0x5a): undefined reference to `scanf_s'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty