0_0_37650071_7389.cpp:3:10: error: 'int div [4]' redeclared as different kind of symbol
int div[4] = {2, 3, 5, 7};
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/assert.h:17:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/cassert:43,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:33,
from 0_0_37650071_7389.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/stdlib.h:358:17: note: previous declaration 'div_t div(int, int)'
div_t __cdecl div(int _Numerator,int _Denominator);
^
0_0_37650071_7389.cpp: In function 'void solve()':
0_0_37650071_7389.cpp:11:29: error: invalid operands of types 'int' and 'div_t(int, int) {aka _div_t(int, int)}' to binary 'operator%'
while (n % div[i] == 0) {
^
0_0_37650071_7389.cpp:13:19: error: invalid operands of types 'int' and 'div_t(int, int) {aka _div_t(int, int)}' to binary 'operator/'
n /= div[i];
^
0_0_37650071_7389.cpp:13:19: error: in evaluation of 'operator/=(int, div_t(int, int) {aka struct _div_t(int, int)})'
|