Code::Blocks

User forums => General (but related to Code::Blocks) => Topic started by: gts_47 on September 18, 2017, 01:09:48 pm

Title: found a bug in Code::Blocks EP version 1.1.1 , C standard library -> Mathematics
Post by: gts_47 on September 18, 2017, 01:09:48 pm
When I write ->


#include<bits/stdc++.h>
using namespace std;
int main()
{
     cout<<pow(10,4);
     return 0;
}


It prints 10000,
but when I write ->


#include<bits/stdc++.h>
using namespace std;
int main()
{
    int p=pow(10,4);
    cout<<p;
    return 0;
}


It prints 9999 !!!!!!!!!!!!!
This bug wasted a lot of time during a question on codeforces
This is a serious issue please take a look at it.
Title: Re: found a bug in Code::Blocks EP version 1.1.1 , C standard library -> Mathematics
Post by: sodev on September 18, 2017, 01:36:59 pm
First: what is that for a strange CodeBlocks version, CodeBlocks is using the yy.mm scheme for quite a long time, second: i can't see any CodeBlocks problem here, i can see at best a compiler problem, and third: everyone who is writing using namespace std should be shot instantly.
Title: Re: found a bug in Code::Blocks EP version 1.1.1 , C standard library -> Mathematics
Post by: Commaster on September 18, 2017, 01:44:30 pm
A quick search has revealed "Code::Blocks EP 1.1.1" at codeblocks.codecutter.org .
Last update in 2011. GCC 4.4.5... :sigh:...

People just can't read:
Quote
The Code::Blocks team are not involved in the production of Code::Blocks EDU-Portable and assume no responsibility for it.
Title: Re: found a bug in Code::Blocks EP version 1.1.1 , C standard library -> Mathematics
Post by: jens on September 18, 2017, 10:00:53 pm
Unrelated to "our" version of Code::Blocks, therefore violating our forum rules.
Topic Locked !