0_0_22785640_16509.cpp:23:16: error: 'int remainder [100000]' redeclared as different kind of symbol
int remainder[N];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:44:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_22785640_16509.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/math.h:897:25: note: previous declaration 'double remainder(double, double)'
extern double __cdecl remainder (double, double);
^
0_0_22785640_16509.cpp: In function 'int main()':
0_0_22785640_16509.cpp:60:20: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
remainder[j] = num[j] % factor[i];
^
0_0_22785640_16509.cpp:61:35: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator+'
sort(remainder, remainder + n);
^
0_0_22785640_16509.cpp:64:28: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if (remainder[begin] == 0) {
^
0_0_22785640_16509.cpp:68:28: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if (remainder[begin] + remainder[end] == factor[i]) {
^
0_0_22785640_16509.cpp:68:45: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if (remainder[begin] + remainder[end] == factor[i]) {
^
0_0_22785640_16509.cpp:69:40: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
thisResult += remainder[begin];
^
0_0_22785640_16509.cpp:70:24: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
remainder[end] += remainder[begin];
^
0_0_22785640_16509.cpp:70:44: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
remainder[end] += remainder[begin];
^
0_0_22785640_16509.cpp:71:26: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
remainder[begin] = 0;
^
0_0_22785640_16509.cpp:74:35: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
} else if (remainder[begin] + remainder[end] < factor[i]) {
^
0_0_22785640_16509.cpp:74:52: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
} else if (remainder[begin] + remainder[end] < factor[i]) {
^
0_0_22785640_16509.cpp:75:40: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
thisResult += remainder[begin];
^
0_0_22785640_16509.cpp:76:24: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
remainder[end] += remainder[begin];
^
0_0_22785640_16509.cpp:76:44: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
remainder[end] += remainder[begin];
^
0_0_22785640_16509.cpp:77:26: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
remainder[begin] = 0;
^
0_0_22785640_16509.cpp:80:50: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
thisResult += factor[i] - remainder[end];
^
0_0_22785640_16509.cpp:81:24: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
remainder[end] = 0;
^
0_0_22785640_16509.cpp:82:26: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
remainder[begin] -= factor[i] - remainder[end];
^
0_0_22785640_16509.cpp:82:56: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
remainder[begin] -= factor[i] - remainder[end];
^
0_0_22785640_16509.cpp:86:26: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
if (remainder[begin] % factor[i] == 0) {
^
|