F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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)})'


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-26 13:17:51, Gzip enabled