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_29468772_21458.cpp: In function 'LL dp(int, char*)':
0_0_29468772_21458.cpp:65:21: error: incompatible types in assignment of 'int' to 'LL [1234] {aka long long int [1234]}'
                 g[0]=0;
                     ^
0_0_29468772_21458.cpp:68: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_29468772_21458.cpp:70: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_29468772_21458.cpp:72: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_29468772_21458.cpp:76: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_29468772_21458.cpp:52:6: note: initializing argument 2 of 'void inc(LL&, LL)'
 void inc( LL &a, LL b) {
      ^
0_0_29468772_21458.cpp: In function 'LL bf(int, int, char*)':
0_0_29468772_21458.cpp:85:38: error: incompatible types in assignment of 'int' to 'int [1234]'
         for(int i = 0; i < n; ++ i) a=i;
                                      ^
0_0_29468772_21458.cpp:88:37: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
                         s = (a<a[i+1]?'U':'D');
                                     ^
0_0_29468772_21458.cpp:88:27: error: incompatible types in assignment of 'char' to 'char [1234]'
                         s = (a<a[i+1]?'U':'D');
                           ^
0_0_29468772_21458.cpp: In function 'void bf_check()':
0_0_29468772_21458.cpp:114:62: error: incompatible types in assignment of 'char' to 'char [1234]'
                                 for(int i = 0; i < m; ++ i) p=(s&(1<<i))?'U':'D';
                                                              ^
0_0_29468772_21458.cpp: At global scope:
0_0_29468772_21458.cpp:170:11: error: redefinition of 'const int P'
 const int P = (int)1e9 + 7 ;
           ^
0_0_29468772_21458.cpp:27:11: note: 'const int P' previously defined here
 const int P = (int)1e9 + 7 ;
           ^
0_0_29468772_21458.cpp:172:11: error: redefinition of 'const int MAXN'
 const int MAXN = 1234;
           ^
0_0_29468772_21458.cpp:29:11: note: 'const int MAXN' previously defined here
 const int MAXN = 1234;
           ^
0_0_29468772_21458.cpp: In function 'int count(char*, char*)':
0_0_29468772_21458.cpp:174:5: error: redefinition of 'int count(char*, char*)'
 int count( char a[], char b[]) {
     ^
0_0_29468772_21458.cpp:31:5: note: 'int count(char*, char*)' previously defined here
 int count( char a[], char b[]) {
     ^
0_0_29468772_21458.cpp: At global scope:
0_0_29468772_21458.cpp:192:13: error: redefinition of 'int a [1234]'
 int a[ MAXN ];
             ^
0_0_29468772_21458.cpp:49:5: note: 'int a [1234]' previously declared here
 int a[ MAXN ];
     ^
0_0_29468772_21458.cpp:193:20: error: redefinition of 'LL f [1234][1234]'
 LL f[ MAXN ][ MAXN ] , g[ MAXN ][ MAXN ];
                    ^
0_0_29468772_21458.cpp:50:4: note: 'LL f [1234][1234]' previously declared here
 LL f[ MAXN ][ MAXN ] , g[ MAXN ][ MAXN ];
    ^
0_0_29468772_21458.cpp:193:40: error: redefinition of 'LL g [1234][1234]'
 LL f[ MAXN ][ MAXN ] , g[ MAXN ][ MAXN ];
                                        ^
0_0_29468772_21458.cpp:50:24: note: 'LL g [1234][1234]' previously declared here
 LL f[ MAXN ][ MAXN ] , g[ MAXN ][ MAXN ];
                        ^
0_0_29468772_21458.cpp: In function 'void inc(LL&, LL)':
0_0_29468772_21458.cpp:195:6: error: redefinition of 'void inc(LL&, LL)'
 void inc( LL &a, LL b) {
      ^
0_0_29468772_21458.cpp:52:6: note: 'void inc(LL&, LL)' previously defined here
 void inc( LL &a, LL b) {
      ^
0_0_29468772_21458.cpp: In function 'LL dp(int, char*)':
0_0_29468772_21458.cpp:202:4: error: redefinition of 'LL dp(int, char*)'
 LL dp( int m, char p[]){
    ^
0_0_29468772_21458.cpp:59:4: note: 'LL dp(int, char*)' previously defined here
 LL dp( int m, char p[]){
    ^
0_0_29468772_21458.cpp:208:21: error: incompatible types in assignment of 'int' to 'LL [1234] {aka long long int [1234]}'
                 g[0]=0;
                     ^
0_0_29468772_21458.cpp:211: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_29468772_21458.cpp:213: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_29468772_21458.cpp:215: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_29468772_21458.cpp:219: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_29468772_21458.cpp:52:6: note: initializing argument 2 of 'void inc(LL&, LL)'
 void inc( LL &a, LL b) {
      ^
0_0_29468772_21458.cpp: In function 'LL bf(int, int, char*)':
0_0_29468772_21458.cpp:223:4: error: redefinition of 'LL bf(int, int, char*)'
 LL bf(int n, int m, char p[]){
    ^
0_0_29468772_21458.cpp:80:4: note: 'LL bf(int, int, char*)' previously defined here
 LL bf(int n, int m, char p[]){
    ^
0_0_29468772_21458.cpp:228:38: error: incompatible types in assignment of 'int' to 'int [1234]'
         for(int i = 0; i < n; ++ i) a=i;
                                      ^
0_0_29468772_21458.cpp:231:37: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
                         s = (a<a[i+1]?'U':'D');
                                     ^
0_0_29468772_21458.cpp:231:27: error: incompatible types in assignment of 'char' to 'char [1234]'
                         s = (a<a[i+1]?'U':'D');
                           ^
0_0_29468772_21458.cpp: In function 'LL bf_solve(int, int, char*)':
0_0_29468772_21458.cpp:238:4: error: redefinition of 'LL bf_solve(int, int, char*)'
 LL bf_solve( int n, int m, char p[]) {
    ^
0_0_29468772_21458.cpp:95:4: note: 'LL bf_solve(int, int, char*)' previously defined here
 LL bf_solve( int n, int m, char p[]) {
    ^
0_0_29468772_21458.cpp: In function 'LL my_solve(int, int, char*)':
0_0_29468772_21458.cpp:244:4: error: redefinition of 'LL my_solve(int, int, char*)'
 LL my_solve( int n, int m, char p[]) {
    ^
0_0_29468772_21458.cpp:101:4: note: 'LL my_solve(int, int, char*)' previously defined here
 LL my_solve( int n, int m, char p[]) {
    ^
0_0_29468772_21458.cpp: In function 'void bf_check()':
0_0_29468772_21458.cpp:250:6: error: redefinition of 'void bf_check()'
 void bf_check(){
      ^
0_0_29468772_21458.cpp:107:6: note: 'void bf_check()' previously defined here
 void bf_check(){
      ^
0_0_29468772_21458.cpp:257:62: error: incompatible types in assignment of 'char' to 'char [1234]'
                                 for(int i = 0; i < m; ++ i) p=(s&(1<<i))?'U':'D';
                                                              ^
0_0_29468772_21458.cpp: At global scope:
0_0_29468772_21458.cpp:274:14: error: redefinition of 'char p [1234]'
 char p[ MAXN ];
              ^
0_0_29468772_21458.cpp:131:6: note: 'char p [1234]' previously declared here
 char p[ MAXN ];
      ^
0_0_29468772_21458.cpp:275:5: error: redefinition of 'int n'
 int n, m ;
     ^
0_0_29468772_21458.cpp:132:5: note: 'int n' previously declared here
 int n, m ;
     ^
0_0_29468772_21458.cpp:275:8: error: redefinition of 'int m'
 int n, m ;
        ^
0_0_29468772_21458.cpp:132:8: note: 'int m' previously declared here
 int n, m ;
        ^
0_0_29468772_21458.cpp: In function 'int main()':
0_0_29468772_21458.cpp:277:5: error: redefinition of 'int main()'
 int main() {
     ^
0_0_29468772_21458.cpp:134:5: note: 'int main()' previously defined here
 int main() {
     ^
0_0_29468772_21458.cpp: At global scope:
0_0_29468772_21458.cpp:313:11: error: redefinition of 'const int P'
 const int P = (int)1e9 + 7 ;
           ^
0_0_29468772_21458.cpp:27:11: note: 'const int P' previously defined here
 const int P = (int)1e9 + 7 ;
           ^
0_0_29468772_21458.cpp:315:11: error: redefinition of 'const int MAXN'
 const int MAXN = 1234;
           ^
0_0_29468772_21458.cpp:29:11: note: 'const int MAXN' previously defined here
 const int MAXN = 1234;
           ^
0_0_29468772_21458.cpp: In function 'int count(char*, char*)':
0_0_29468772_21458.cpp:317:5: error: redefinition of 'int count(char*, char*)'
 int count( char a[], char b[]) {
     ^
0_0_29468772_21458.cpp:31:5: note: 'int count(char*, char*)' previously defined here
 int count( char a[], char b[]) {
     ^
0_0_29468772_21458.cpp: At global scope:
0_0_29468772_21458.cpp:335:13: error: 


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-12-02 03:15:41, Gzip enabled