Função Pow
Started By
sirdan
, 02/04/2005, 09:03
9 replies to this topic
#1
Posted 02/04/2005, 09:03
No estou conseguindo elvar um número a uma potencia em C.
Sei que devo usar o comando pow. Mas está apresentando mensagem de erro.
#include <stdio.h>
#include <math.h>
int main ()
{
int a;
a=pow(2,1);
printf("%d",a);
}
Este programa apresenta a mensagem:
teste.c:8:2: warning: no newline at end of file
/home/daniel/tmp/ccG5CJks.o(.text+0x29): In function `main':
: undefined reference to `pow'
collect2: ld returned 1 exit status
O que devo fazer?
Grato
Sei que devo usar o comando pow. Mas está apresentando mensagem de erro.
#include <stdio.h>
#include <math.h>
int main ()
{
int a;
a=pow(2,1);
printf("%d",a);
}
Este programa apresenta a mensagem:
teste.c:8:2: warning: no newline at end of file
/home/daniel/tmp/ccG5CJks.o(.text+0x29): In function `main':
: undefined reference to `pow'
collect2: ld returned 1 exit status
O que devo fazer?
Grato
#3
Posted 02/04/2005, 16:24
O um foi só pra mostrar aqui. Escrevi este código para postar algo menor e ir direto ao problema. Este programa simples não funciona nem com um nem com outro número . Não sei porque.
#4
Posted 03/04/2005, 11:56
O estranho que dá erro exatamente no pow...
Qual compilador? Tenta esse, só pra ver se tem dferença:
Alguns compiladores não compilam o código se não tiver retorno a função main.
Qual compilador? Tenta esse, só pra ver se tem dferença:
#include<stdio.h>
#include<math.h>
int main ()
{
int a;
a=pow(2,1);
printf("%d",a);
return 0;
}
Alguns compiladores não compilam o código se não tiver retorno a função main.
#5
Posted 17/09/2017, 06:29
Manufacturer Of Zithromax cheap cialis Internetapotheke Viagra Holland
Cialis Ohne Wirkung Worldbestonlinepharmacy
Compra Viagra Calidad <a href=http://cialtobuy.com>cialis</a> Fluconazole Online India
Cialis Ohne Wirkung Worldbestonlinepharmacy
Compra Viagra Calidad <a href=http://cialtobuy.com>cialis</a> Fluconazole Online India
#6
Posted 29/09/2017, 10:35
Levitra Mit Dapoxetin generic cialis Levitra Pour Homme Can Buy Colchicine 0 5 At Store Cytotec Prix Maroc
#7
Posted 03/10/2017, 20:25
Wie Wirkt Viagra Am Schnellsten Purple Pharmacy In Mexico Need Fedex Acticin Internet Medicine levitra online Baclofene Liquide Viagra Y Presion Alta
Generic Propecia Best lowest price for 20 mg of levitra Buy Benazepril Hydrochloride Australia Order Neurontine Overnight
Generic Propecia Best lowest price for 20 mg of levitra Buy Benazepril Hydrochloride Australia Order Neurontine Overnight
#8
Posted 06/10/2017, 09:02
Cheapest Sildenafil Citrate 100mg Cephalexin Behavioral Side Effects Children viagra Zithromax Diarrhea Erfahrungsbericht Viagra 100 Comment Acheter Cialis Internet
Cost Of Viagra Viagra Vente Tunisie cialis online Generika Cialis Oral Jelly
Care viagra prescription Propecia Finasteride Generic
Cost Of Viagra Viagra Vente Tunisie cialis online Generika Cialis Oral Jelly
Care viagra prescription Propecia Finasteride Generic
#9
Posted 22/10/2017, 16:21
Propecia Disefoto viagra online prescription Acheter Viagra Ligne
Buy Kamagra Tablets Uk Tadalafil 20mg For Sale Driclor Walmart viagra Buy Now Tab Isotretinoin Lilly Cialis 20mg
Buy Kamagra Tablets Uk Tadalafil 20mg For Sale Driclor Walmart viagra Buy Now Tab Isotretinoin Lilly Cialis 20mg
#10
Posted 20/11/2017, 10:30
Amoxicillin Price New Zealand Buy Doxycycline viagra online Buy Cheap Propecia Uk Order Medrol Dose Pack
0 user(s) are reading this topic
0 membro(s), 0 visitante(s) e 0 membros anônimo(s)