foo.cpp:7:17: error: 'int exp [105][105]' redeclared as different kind of symbol
int exp[105][105];
^
In file included from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\cmath:44:0,
from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\random:38,
from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algo.h:65,
from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\algorithm:62,
from foo.cpp:2:
c:\tdm-gcc-32\include\math.h:153:24: error: previous declaration of 'double exp(double)'
_CRTIMP double __cdecl exp (double);
^
foo.cpp: In function 'void solve()':
foo.cpp:14:22: warning: pointer to a function used in arithmetic [-Wpointer-arith]
scanf("%d", &exp[i][j]);
^
foo.cpp:14:25: warning: pointer to a function used in arithmetic [-Wpointer-arith]
scanf("%d", &exp[i][j]);
^
foo.cpp:14:26: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'double (__attribute__((__cdecl__)) *)(double)' [-Wformat=]
scanf("%d", &exp[i][j]);
^
foo.cpp:16:18: warning: pointer to a function used in arithmetic [-Wpointer-arith]
std::sort(exp[i], exp[i]+N, std::greater<int>());
^
foo.cpp:16:26: warning: pointer to a function used in arithmetic [-Wpointer-arith]
std::sort(exp[i], exp[i]+N, std::greater<int>());
^
foo.cpp:16:28: warning: pointer to a function used in arithmetic [-Wpointer-arith]
std::sort(exp[i], exp[i]+N, std::greater<int>());
^
foo.cpp:27:17: warning: pointer to a function used in arithmetic [-Wpointer-arith]
while(exp[left][idx]==exp[right][idx] && idx<N) { idx++; }
^
foo.cpp:27:22: warning: pointer to a function used in arithmetic [-Wpointer-arith]
while(exp[left][idx]==exp[right][idx] && idx<N) { idx++; }
^
foo.cpp:27:34: warning: pointer to a function used in arithmetic [-Wpointer-arith]
while(exp[left][idx]==exp[right][idx] && idx<N) { idx++; }
^
foo.cpp:27:39: warning: pointer to a function used in arithmetic [-Wpointer-arith]
while(exp[left][idx]==exp[right][idx] && idx<N) { idx++; }
^
foo.cpp:32:16: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (exp[left][idx] > exp[right][idx]) {
^
foo.cpp:32:21: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (exp[left][idx] > exp[right][idx]) {
^
foo.cpp:32:34: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (exp[left][idx] > exp[right][idx]) {
^
foo.cpp:32:39: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (exp[left][idx] > exp[right][idx]) {
^
foo.cpp:34:20: warning: pointer to a function used in arithmetic [-Wpointer-arith]
sl += exp[left][idx];
^
foo.cpp:34:25: warning: pointer to a function used in arithmetic [-Wpointer-arith]
sl += exp[left][idx];
^
foo.cpp:34:9: warning: pointer to a function used in arithmetic [-Wpointer-arith]
sl += exp[left][idx];
^
foo.cpp:34:9: error: invalid conversion from 'double (__attribute__((__cdecl__)) *)(double)' to 'int' [-fpermissive]
foo.cpp:35:21: warning: pointer to a function used in arithmetic [-Wpointer-arith]
sr += exp[right][idx];
^
foo.cpp:35:26: warning: pointer to a function used in arithmetic [-Wpointer-arith]
sr += exp[right][idx];
^
foo.cpp:35:9: warning: pointer to a function used in arithmetic [-Wpointer-arith]
sr += exp[right][idx];
^
foo.cpp:35:9: error: invalid conversion from 'double (__attribute__((__cdecl__)) *)(double)' to 'int' [-fpermissive]
foo.cpp:43:20: warning