fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main (void) {
  5. int hip, cat1, cat2;
  6. scanf("%d", &cat1);
  7. scanf("%d", &cat2);
  8. scanf("%d", &hip);
  9. if (hip == (int)sqrt(pow(cat1, 2) + pow(cat2, 2))) printf("SIM");
  10. else printf("NAO");
  11. }
  12.  
  13. //https://pt.stackoverflow.com/q/56916/101
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
3
3
4
compilation info
/usr/bin/ld: /home/1xcY2R/ccNjuUX5.o: in function `main':
prog.c:(.text+0x70): undefined reference to `pow'
/usr/bin/ld: prog.c:(.text+0x8b): undefined reference to `pow'
/usr/bin/ld: prog.c:(.text+0x96): undefined reference to `sqrt'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty