#14066: 這哪裡錯了?


account404 (username)


這哪裡錯了?

#include <iostream>
#include <math.h>
using namespace ::std;
int main(){
int n;
while(cin>>n){
cout<<pow(2,n)<<endl;
}
return 0;
}

#14067: Re:這哪裡錯了?


anandrewboy70900 (ShowTsai)


這哪裡錯了?

#include
#include
using namespace ::std;
int main(){
int n;
while(cin>>n){
cout<<pow(2,n)<<endl;
}
return 0;
}

n <= 5000


用pow肯定overflow