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

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_30417508_1818.cpp:3:
0_0_30417508_1818.cpp:5:52: error: declaration of 'long long int __builtin_nan' conflicts with built-in declaration 'double __builtin_nan(const char*)'
 long long t,i,factorial[2001],IE[2001],n,j,a[1001],NAN,k,NA[1001],l,f[1001][1001],answer;
                                                    ^
0_0_30417508_1818.cpp:5:52: error: 'long long int __builtin_nan' conflicts with a previous declaration
<built-in>: note: previous declaration 'double __builtin_nan(const char*)'
0_0_30417508_1818.cpp:5:52: error: invalid conversion from 'const char*' to 'long long int' [-fpermissive]
 long long t,i,factorial[2001],IE[2001],n,j,a[1001],NAN,k,NA[1001],l,f[1001][1001],answer;
                                                    ^
0_0_30417508_1818.cpp: In function 'int main()':
0_0_30417508_1818.cpp:34:6: error: lvalue required as left operand of assignment
   NAN=0;
      ^
0_0_30417508_1818.cpp:38:7: error: lvalue required as increment operand
    NAN++;
       ^
0_0_30417508_1818.cpp:39:10: error: invalid types 'long long int [1001][double]' for array subscript
    NA[NAN]=k-j;
          ^
0_0_30417508_1818.cpp:43:35: error: invalid types 'long long int [1001][double]' for array subscript
   for (l=0,f[j][k]=0;2*l<=k+NA[NAN];l++)
                                   ^
0_0_30417508_1818.cpp:44:35: error: invalid types 'long long int [1001][double]' for array subscript
   f[j][k]=(f[j][k]+f[j-1][k+NA[NAN]-l-l]*C(NA[NAN],l)*C(k+NA[NAN]-l-l,NA[NAN]-l))%998244353;
                                   ^
0_0_30417508_1818.cpp:44:50: error: invalid types 'long long int [1001][double]' for array subscript
   f[j][k]=(f[j][k]+f[j-1][k+NA[NAN]-l-l]*C(NA[NAN],l)*C(k+NA[NAN]-l-l,NA[NAN]-l))%998244353;
                                                  ^
0_0_30417508_1818.cpp:44:65: error: invalid types 'long long int [1001][double]' for array subscript
   f[j][k]=(f[j][k]+f[j-1][k+NA[NAN]-l-l]*C(NA[NAN],l)*C(k+NA[NAN]-l-l,NA[NAN]-l))%998244353;
                                                                 ^
0_0_30417508_1818.cpp:44:77: error: invalid types 'long long int [1001][double]' for array subscript
   f[j][k]=(f[j][k]+f[j-1][k+NA[NAN]-l-l]*C(NA[NAN],l)*C(k+NA[NAN]-l-l,NA[NAN]-l))%998244353;
                                                                             ^
0_0_30417508_1818.cpp:47:16: error: invalid types 'long long int [1001][1001][double]' for array subscript
   answer=(f[NAN][j]+answer)%998244353;
                ^


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-29 21:49:45, Gzip enabled