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_34746204_18423.cpp:10:17: error: expected primary-expression at end of input
      Node(int i = ) {
                 ^
0_0_34746204_18423.cpp: In constructor 'Node::Node(int)':
0_0_34746204_18423.cpp:12:21: error: expected primary-expression before ',' token
          memset(go, , sizeof(go));
                     ^
0_0_34746204_18423.cpp:13:17: error: expected primary-expression before ';' token
          fail = ;
                 ^
0_0_34746204_18423.cpp: In function 'void build(Node*, char*)':
0_0_34746204_18423.cpp:19:18: error: expected primary-expression before ';' token
      for(int i = ; str[i]; ++i) {
                  ^
0_0_34746204_18423.cpp:21:56: error: expected primary-expression before ')' token
          if(!p->go[index]) p->go[index] = new Node(i + );
                                                        ^
0_0_34746204_18423.cpp: In function 'void makeFail(Node*)':
0_0_34746204_18423.cpp:30:22: error: expected primary-expression before ';' token
          for(int i = ; i < ; ++i) {
                      ^
0_0_34746204_18423.cpp:30:28: error: expected primary-expression before ';' token
          for(int i = ; i < ; ++i) {
                            ^
0_0_34746204_18423.cpp: In function 'void makeGo(Node*, char*)':
0_0_34746204_18423.cpp:52:18: error: expected primary-expression before ';' token
      for(int i = ; i < ; ++i)
                  ^
0_0_34746204_18423.cpp:52:24: error: expected primary-expression before ';' token
      for(int i = ; i < ; ++i)
                        ^
0_0_34746204_18423.cpp:53:22: error: expected primary-expression before ']' token
          if(i != str[] - 'a') root->go[i] = root;
                      ^
0_0_34746204_18423.cpp:54:18: error: expected primary-expression before ';' token
      for(int i = ; str[i]; ++i) {
                  ^
0_0_34746204_18423.cpp:57:22: error: expected primary-expression before ';' token
          for(int j = ; j < ; ++j) {
                      ^
0_0_34746204_18423.cpp:57:28: error: expected primary-expression before ';' token
          for(int j = ; j < ; ++j) {
                            ^
0_0_34746204_18423.cpp: At global scope:
0_0_34746204_18423.cpp:73:9: error: storage size of 's' isn't known
  char s[];
         ^
0_0_34746204_18423.cpp:74:14: error: declaration of 'dp' as multidimensional array must have bounds for all dimensions except the first
  double dp[][];
              ^
0_0_34746204_18423.cpp:75:13: error: storage size of 'pro' isn't known
  double pro[];
             ^
0_0_34746204_18423.cpp: In function 'double solve(Node*)':
0_0_34746204_18423.cpp:78:16: error: expected primary-expression before ',' token
      int cur = , len = strlen(s);
                ^
0_0_34746204_18423.cpp:79:6: error: 'dp' was not declared in this scope
      dp[cur][] = ;
      ^
0_0_34746204_18423.cpp:79:14: error: expected primary-expression before ']' token
      dp[cur][] = ;
              ^
0_0_34746204_18423.cpp:79:18: error: expected primary-expression before ';' token
      dp[cur][] = ;
                  ^
0_0_34746204_18423.cpp:80:18: error: expected primary-expression before ';' token
      for(int i = ; i <= len; ++i) dp[cur][i] = ;
                  ^
0_0_34746204_18423.cpp:80:25: error: 'len' was not declared in this scope
      for(int i = ; i <= len; ++i) dp[cur][i] = ;
                         ^
0_0_34746204_18423.cpp:80:48: error: expected primary-expression before ';' token
      for(int i = ; i <= len; ++i) dp[cur][i] = ;
                                                ^
0_0_34746204_18423.cpp:81:18: error: expected primary-expression before ';' token
      for(int t = ; t < m; ++t) {
                  ^
0_0_34746204_18423.cpp:82:22: error: expected primary-expression before ';' token
          for(int i = ; i <= len; ++i) dp[cur ^ ][i] = ;
                      ^
0_0_34746204_18423.cpp:82:29: error: 'len' was not declared in this scope
          for(int i = ; i <= len; ++i) dp[cur ^ ][i] = ;
                             ^
0_0_34746204_18423.cpp:82:48: error: expected primary-expression before ']' token
          for(int i = ; i <= len; ++i) dp[cur ^ ][i] = ;
                                                ^
0_0_34746204_18423.cpp:82:55: error: expected primary-expression before ';' token
          for(int i = ; i <= len; ++i) dp[cur ^ ][i] = ;
                                                       ^
0_0_34746204_18423.cpp:83:22: error: expected primary-expression before ';' token
          for(int i = ; i < ; ++i)
                      ^
0_0_34746204_18423.cpp:83:28: error: expected primary-expression before ';' token
          for(int i = ; i < ; ++i)
                            ^
0_0_34746204_18423.cpp:84:23: error: expected primary-expression before ']' token
              dp[cur ^ ][root->go[i]->id] += pro[i] * dp[cur][];
                       ^
0_0_34746204_18423.cpp:84:62: error: expected primary-expression before ']' token
              dp[cur ^ ][root->go[i]->id] += pro[i] * dp[cur][];
                                                              ^
0_0_34746204_18423.cpp:86:22: error: expected primary-expression before ';' token
          for(int i = ; i < len - ; ++i) {
                      ^
0_0_34746204_18423.cpp:86:28: error: 'len' was not declared in this scope
          for(int i = ; i < len - ; ++i) {
                            ^
0_0_34746204_18423.cpp:86:34: error: expected primary-expression before ';' token
          for(int i = ; i < len - ; ++i) {
                                  ^
0_0_34746204_18423.cpp:89:26: error: expected primary-expression before ';' token
              for(int j = ; j < ; ++j)
                          ^
0_0_34746204_18423.cpp:89:32: error: expected primary-expression before ';' token
              for(int j = ; j < ; ++j)
                                ^
0_0_34746204_18423.cpp:90:27: error: expected primary-expression before ']' token
                  dp[cur ^ ][tmp->go[j]->id] += pro[j] * dp[cur][i + ];
                           ^
0_0_34746204_18423.cpp:90:69: error: expected primary-expression before ']' token
                  dp[cur ^ ][tmp->go[j]->id] += pro[j] * dp[cur][i + ];
                                                                     ^
0_0_34746204_18423.cpp:92:17: error: expected primary-expression before ';' token
          cur ^= ;
                 ^
0_0_34746204_18423.cpp:95:19: error: expected primary-expression before ';' token
      double ret = ;
                   ^
0_0_34746204_18423.cpp:96:18: error: expected primary-expression before ';' token
      for(int i = ; i < len; ++i) {
                  ^
0_0_34746204_18423.cpp:96:24: error: 'len' was not declared in this scope
      for(int i = ; i < len; ++i) {
                        ^
0_0_34746204_18423.cpp: In function 'int main()':
0_0_34746204_18423.cpp:104:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
          if(n ==  && m == ) break;
                      ^
0_0_34746204_18423.cpp:104:27: error: expected primary-expression before ')' token
          if(n ==  && m == ) break;
                           ^
0_0_34746204_18423.cpp:106:22: error: expected primary-expression before ';' token
          for(int i = ; i < ; ++i) pro[i] = ;
                      ^
0_0_34746204_18423.cpp:106:28: error: expected primary-expression before ';' token
          for(int i = ; i < ; ++i) pro[i] = ;
                            ^
0_0_34746204_18423.cpp:106:44: error: expected primary-expression before ';' token
          for(int i = ; i < ; ++i) pro[i] = ;
                                            ^
0_0_34746204_18423.cpp:107:22: error: expected primary-expression before ';' token
          for(int i = ; i < n; ++i)
                      ^
0_0_34746204_18423.cpp:110:27: error: call to 'Node::Node(int)' uses the default argument for parameter 1, which is not yet defined
          Node *root = new Node;
                           ^
0_0_34746204_18423.cpp:114:43: error: expected primary-expression before ')' token
          printf("%.2f%%\n", solve(root) * );
                                           ^
0_0_34746204_18423.cpp:104:22: error: label 'm' used but not defined
          if(n ==  && m == ) break;
                      ^


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-22 23:37:58, Gzip enabled