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_31955924_7850.cpp:11:2: error: stray '#' in program
  int t;
  ^
0_0_31955924_7850.cpp:12:2: error: stray '#' in program
  cin >> t;
  ^
0_0_31955924_7850.cpp:13:2: error: stray '#' in program
  while(t--)
  ^
0_0_31955924_7850.cpp:14:2: error: stray '#' in program
  {
  ^
0_0_31955924_7850.cpp:15:2: error: stray '#' in program
   int n;
  ^
0_0_31955924_7850.cpp:15:8: error: stray '#' in program
   int n;
        ^
0_0_31955924_7850.cpp:16:2: error: stray '#' in program
   cin >> n;
  ^
0_0_31955924_7850.cpp:16:8: error: stray '#' in program
   cin >> n;
        ^
0_0_31955924_7850.cpp:17:2: error: stray '#' in program
   for(int i = 0;i < n;i++)
  ^
0_0_31955924_7850.cpp:17:8: error: stray '#' in program
   for(int i = 0;i < n;i++)
        ^
0_0_31955924_7850.cpp:18:2: error: stray '#' in program
   for(int j = 0;j <= i;j++)
  ^
0_0_31955924_7850.cpp:18:8: error: stray '#' in program
   for(int j = 0;j <= i;j++)
        ^
0_0_31955924_7850.cpp:19:2: error: stray '#' in program
   cin >> dp[i][j];
  ^
0_0_31955924_7850.cpp:19:8: error: stray '#' in program
   cin >> dp[i][j];
        ^
0_0_31955924_7850.cpp:20:2: error: stray '#' in program
   for(int i = n-2;i >= 0;i--)
  ^
0_0_31955924_7850.cpp:20:8: error: stray '#' in program
   for(int i = n-2;i >= 0;i--)
        ^
0_0_31955924_7850.cpp:21:2: error: stray '#' in program
   for(int j = 0;j <= i;j++)
  ^
0_0_31955924_7850.cpp:21:8: error: stray '#' in program
   for(int j = 0;j <= i;j++)
        ^
0_0_31955924_7850.cpp:22:2: error: stray '#' in program
   dp[i][j] += max(dp[i+1][j],dp[i+1][j+1]);
  ^
0_0_31955924_7850.cpp:22:8: error: stray '#' in program
   dp[i][j] += max(dp[i+1][j],dp[i+1][j+1]);
        ^
0_0_31955924_7850.cpp:23:2: error: stray '#' in program
   cout << dp[0][0] << endl;
  ^
0_0_31955924_7850.cpp:23:8: error: stray '#' in program
   cout << dp[0][0] << endl;
        ^
0_0_31955924_7850.cpp:24:2: error: stray '#' in program
  }
  ^
0_0_31955924_7850.cpp:25:2: error: stray '#' in program
     return 0;   
  ^
0_0_31955924_7850.cpp:25:8: error: stray '#' in program
     return 0;   
        ^
0_0_31955924_7850.cpp:25:14: error: stray '#' in program
     return 0;   
              ^
0_0_31955924_7850.cpp:25:30: error: stray '#' in program
     return 0;   
                              ^
0_0_31955924_7850.cpp:25:36: error: stray '#' in program
     return 0;   
                                    ^
0_0_31955924_7850.cpp:26:3: error: stray '#' in program
 } 
   ^
0_0_31955924_7850.cpp: In function 'int main()':
0_0_31955924_7850.cpp:11:3: error: lvalue required as unary '&' operand
  int t;
   ^
0_0_31955924_7850.cpp:12:3: error: lvalue required as unary '&' operand
  cin >> t;
   ^
0_0_31955924_7850.cpp:13:3: error: lvalue required as unary '&' operand
  while(t--)
   ^
0_0_31955924_7850.cpp:14:3: error: lvalue required as unary '&' operand
  {
   ^
0_0_31955924_7850.cpp:15:3: error: lvalue required as unary '&' operand
   int n;
   ^
0_0_31955924_7850.cpp:15:9: error: lvalue required as unary '&' operand
   int n;
         ^
0_0_31955924_7850.cpp:16:3: error: lvalue required as unary '&' operand
   cin >> n;
   ^
0_0_31955924_7850.cpp:16:9: error: lvalue required as unary '&' operand
   cin >> n;
         ^
0_0_31955924_7850.cpp:17:3: error: lvalue required as unary '&' operand
   for(int i = 0;i < n;i++)
   ^
0_0_31955924_7850.cpp:17:9: error: lvalue required as unary '&' operand
   for(int i = 0;i < n;i++)
         ^
0_0_31955924_7850.cpp:18:3: error: lvalue required as unary '&' operand
   for(int j = 0;j <= i;j++)
   ^
0_0_31955924_7850.cpp:18:9: error: lvalue required as unary '&' operand
   for(int j = 0;j <= i;j++)
         ^
0_0_31955924_7850.cpp:18:32: error: 'i' was not declared in this scope
   for(int j = 0;j <= i;j++)
                                ^
0_0_31955924_7850.cpp:19:3: error: lvalue required as unary '&' operand
   cin >> dp[i][j];
   ^
0_0_31955924_7850.cpp:19:9: error: lvalue required as unary '&' operand
   cin >> dp[i][j];
         ^
0_0_31955924_7850.cpp:19:23: error: 'i' was not declared in this scope
   cin >> dp[i][j];
                       ^
0_0_31955924_7850.cpp:19:26: error: 'j' was not declared in this scope
   cin >> dp[i][j];
                          ^
0_0_31955924_7850.cpp:20:3: error: lvalue required as unary '&' operand
   for(int i = n-2;i >= 0;i--)
   ^
0_0_31955924_7850.cpp:20:9: error: lvalue required as unary '&' operand
   for(int i = n-2;i >= 0;i--)
         ^
0_0_31955924_7850.cpp:21:3: error: lvalue required as unary '&' operand
   for(int j = 0;j <= i;j++)
   ^
0_0_31955924_7850.cpp:21:9: error: lvalue required as unary '&' operand
   for(int j = 0;j <= i;j++)
         ^
0_0_31955924_7850.cpp:22:3: error: lvalue required as unary '&' operand
   dp[i][j] += max(dp[i+1][j],dp[i+1][j+1]);
   ^
0_0_31955924_7850.cpp:22:9: error: lvalue required as unary '&' operand
   dp[i][j] += max(dp[i+1][j],dp[i+1][j+1]);
         ^
0_0_31955924_7850.cpp:23:3: error: lvalue required as unary '&' operand
   cout << dp[0][0] << endl;
   ^
0_0_31955924_7850.cpp:23:9: error: lvalue required as unary '&' operand
   cout << dp[0][0] << endl;
         ^
0_0_31955924_7850.cpp:24:3: error: lvalue required as unary '&' operand
  }
   ^
0_0_31955924_7850.cpp:25:3: error: lvalue required as unary '&' operand
     return 0;   
   ^
0_0_31955924_7850.cpp:25:9: error: lvalue required as unary '&' operand
     return 0;   
         ^
0_0_31955924_7850.cpp:25:15: error: lvalue required as unary '&' operand
     return 0;   
               ^
0_0_31955924_7850.cpp:25:31: error: lvalue required as unary '&' operand
     return 0;   
                               ^
0_0_31955924_7850.cpp:25:37: error: lvalue required as unary '&' operand
     return 0;   
                                     ^
0_0_31955924_7850.cpp: At global scope:
0_0_31955924_7850.cpp:26:4: error: expected unqualified-id before numeric constant
 } 
    ^
0_0_31955924_7850.cpp:26:4: error: expected constructor, destructor, or type conversion before numeric constant


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-10-06 18:26:31, Gzip enabled