I have the following code:
#include <iostream>
#include <vector>
using namespace std;
int v[2];
int main()
{
double p;
cin >> p;
v[0] = p*10;
cout << v[0] << endl;
}
When I input "2.3" into the program on my computer it gives the expected result, 23. But when I input 2.3 on Codeforces and run it, I get 22. Any reason why?