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_20063902_3033.cpp:6:2: error: invalid preprocessing directive #inlcude
 #inlcude<stdlib.h>
  ^
0_0_20063902_3033.cpp:12:19: error: 'int div [9]' redeclared as different kind of symbol
 int a[N][N], div[N];
                   ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdlib:72:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:59,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_20063902_3033.cpp:5:
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_20063902_3033.cpp: In function 'int main()':
0_0_20063902_3033.cpp:56:24: error: 'memeset' was not declared in this scope
   memeset(a,0,sizeof(a));
                        ^
0_0_20063902_3033.cpp:57:26: error: ISO C++ forbids applying 'sizeof' to an expression of function type [-fpermissive]
   memset(div,0,sizeof(div));
                          ^
0_0_20063902_3033.cpp:57:27: error: cannot resolve overloaded function 'div' based on conversion to type 'void*'
   memset(div,0,sizeof(div));
                           ^
0_0_20063902_3033.cpp:64:9: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    div[x]++;
         ^
0_0_20063902_3033.cpp:65:9: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    div[y]++;
         ^
0_0_20063902_3033.cpp:69:38: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    Online_fri[i]=Offline_fri[i]=div[i]/2;
                                      ^
0_0_20063902_3033.cpp:70:12: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    if(div[i]&1)
            ^


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-16 22:45:57, Gzip enabled