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_22191876_12267.cpp: In function 'LL dp(int, char*)':
0_0_22191876_12267.cpp:64:21: error: incompatible types in assignment of 'int' to 'LL [1234] {aka long long int [1234]}'
                 g[0]=0;
                     ^
0_0_22191876_12267.cpp:67:38: error: incompatible types in assignment of 'LL {aka long long int}' to 'LL [1234] {aka long long int [1234]}'
                                 f[j] = g[i-1][j-1];
                                      ^
0_0_22191876_12267.cpp:69:38: error: incompatible types in assignment of 'LL {aka long long int}' to 'LL [1234] {aka long long int [1234]}'
                                 f[j] = ((g[i-1][i-1] - g[i-1][j-1])%P+P)%P;
                                      ^
0_0_22191876_12267.cpp:71:45: error: invalid operands of types 'LL [1234] {aka long long int [1234]}' and 'LL [1234] {aka long long int [1234]}' to binary 'operator+'
                         g[j] = (g[j-1] + f[j])%P;
                                             ^
0_0_22191876_12267.cpp:75:58: error: invalid conversion from 'LL* {aka long long int*}' to 'LL {aka long long int}' [-fpermissive]
         for(int i = 1; i <= m + 1; ++ i) inc( ans , f[m+1]);
                                                          ^
0_0_22191876_12267.cpp:51:6: note: initializing argument 2 of 'void inc(LL&, LL)'
 void inc( LL &a, LL b) {
      ^
0_0_22191876_12267.cpp: In function 'LL bf(int, int, char*)':
0_0_22191876_12267.cpp:84:38: error: incompatible types in assignment of 'int' to 'int [1234]'
         for(int i = 0; i < n; ++ i) a=i;
                                      ^
0_0_22191876_12267.cpp:87:37: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
                         s = (a<a[i+1]?'U':'D');
                                     ^
0_0_22191876_12267.cpp:87:27: error: incompatible types in assignment of 'char' to 'char [1234]'
                         s = (a<a[i+1]?'U':'D');
                           ^
0_0_22191876_12267.cpp: In function 'void bf_check()':
0_0_22191876_12267.cpp:113:62: error: incompatible types in assignment of 'char' to 'char [1234]'
                                 for(int i = 0; i < m; ++ i) p=(s&(1<<i))?'U':'D';
                                                              ^


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-25 15:59:36, Gzip enabled