After adding "aka C++17" flag on my codeblocks 17.12 IDE the code given below gives wrong output .
After facing this problem, when I removed "aka C++17" flag, output is correct, i again added the flag and the output is incorrect again.
#include<iostream>
#include<stdio.h>
using namespace std;
int main()
{
double a,b,ans;
scanf("%lf%lf",&a,&b);
ans=a/b ;
printf("%lf\n",ans);
return 0;
}
I gave input 5 and 2 , the output is -0.000000 . What is changed in "aka C++17"?