sure.cpp: In function 'int main()':
sure.cpp:10:29: warning: format '%f' expects argument of type 'float*', but argument 2 has type 'double*' [-Wformat=]
#define nl(n) scanf("%f", &n)
~~^~
#define nai(a,n) for (int i = 0; i < (n); i++) ni((a)[i])
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#define nal(a,n) for (int i = 0; i < (n); i++) nl((a)[i])
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#define case(t) printf("Case #%d: ", (t))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#define pii pair<int, int>
~~~~~~~~~~~~~~~~~~~~~~~~~~~
#define vii vector<pii>
~~~~~~~~~~~~~~~~~~~~~~~~
#define vi vector<int>
~~~~~~~~~~~~~~~~~~~~~~~
#define pb push_back
~~~~~~~~~~~~~~~~~~~~~
#define mp make_pair
~~~~~~~~~~~~~~~~~~~~~
#define f first
~~~~~~~~~~~~~~~~
#define s second
~~~~~~~~~~~~~~~~~
typedef long long ll;
~~~~~~~~~~~~~~~~~~~~~~
const double pi = acos(-1);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
const int MOD = 1e9 + 7;
~~~~~~~~~~~~~~~~~~~~~~~~~
const int INF = 1e9 + 7;
~~~~~~~~~~~~~~~~~~~~~~~~~
const int MAXN = 1e5 + 5;
~~~~~~~~~~~~~~~~~~~~~~~~~~
const double eps = 1e-9;
~~~~~~~~~~~~~~~~~~~~~~~~~
using namespace std;
~~~~~~~~~~~~~~~~~~~~~
ll a[MAXN], b[MAXN];
~~~~~~~~~~~~~~~~~~~~~
~
int main()
~~~~~~~~~~~
{
~~
int n;
~~~~~~~
ni(n);
~~~~~~~
for (int i = 1; i <= n; i++)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{
~~
double x, y;
~~~~~~~~~~~~~
nl(x), nl(y);
~~~~
sure.cpp:37:9: note: in expansion of macro 'nl'
nl(x), nl(y);
^~
sure.cpp:10:29: warning: format '%f' expects argument of type 'float*', but argument 2 has type 'double*' [-Wformat=]
#define nl(n) scanf("%f", &n)
~~^~
#define nai(a,n) for (int i = 0; i < (n); i++) ni((a)[i])
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#define nal(a,n) for (int i = 0; i < (n); i++) nl((a)[i])
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#define case(t) printf("Case #%d: ", (t))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#define pii pair<int, int>
~~~~~~~~~~~~~~~~~~~~~~~~~~~
#define vii vector<pii>
~~~~~~~~~~~~~~~~~~~~~~~~
#define vi vector<int>
~~~~~~~~~~~~~~~~~~~~~~~
#define pb push_back
~~~~~~~~~~~~~~~~~~~~~
#define mp make_pair
~~~~~~~~~~~~~~~~~~~~~
#define f first
~~~~~~~~~~~~~~~~
#define s second
~~~~~~~~~~~~~~~~~
typedef long long ll;
~~~~~~~~~~~~~~~~~~~~~~
const double pi = acos(-1);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
const int MOD = 1e9 + 7;
~~~~~~~~~~~~~~~~~~~~~~~~~
const int INF = 1e9 + 7;
~~~~~~~~~~~~~~~~~~~~~~~~~
const int MAXN = 1e5 + 5;
~~~~~~~~~~~~~~~~~~~~~~~~~~
const double eps = 1e-9;
~~~~~~~~~~~~~~~~~~~~~~~~~
using namespace std;
~~~~~~~~~~~~~~~~~~~~~
ll a[MAXN], b[MAXN];
~~~~~~~~~~~~~~~~~~~~~
~
int main()
~~~~~~~~~~~
{
~~
int n;
~~~~~~~
ni(n);
~~~~~~~
for (int i = 1; i <= n; i++)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
{
~~
double x, y;
~~~~~~~~~~~~~
nl(x), nl(y);
~~~~~~~~~~~
sure.cpp:37:16: note: in expansion of macro 'nl'
nl(x), nl(y);
^~
sure.cpp:61:24: warning: format '%lf' expects argument of type 'double', but argument 2 has type 'long double' [-Wformat=]
printf("%.4lf", tmp);
^
sure.cpp:9:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
#define ni(n) scanf("%d", &n)
~~~~~^~~~~~~~~~
sure.cpp:33:5: note: in expansion of macro 'ni'
ni(n);
^~
sure.cpp:37:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
nl(x), nl(y);
^
sure.cpp:37:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]