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_37266966_14551.cpp:3:22: error: 'vector' has not been declared
     int minimumTotal(vector<vector<int>>& triangle) {
                      ^
0_0_37266966_14551.cpp:3:28: error: expected ',' or '...' before '<' token
     int minimumTotal(vector<vector<int>>& triangle) {
                            ^
0_0_37266966_14551.cpp: In member function 'int Solution::minimumTotal(int)':
0_0_37266966_14551.cpp:4:17: error: 'triangle' was not declared in this scope
         int n = triangle.size();
                 ^
0_0_37266966_14551.cpp:6:9: error: 'vector' was not declared in this scope
         vector<int> dp = triangle[n-1];
         ^
0_0_37266966_14551.cpp:6:16: error: expected primary-expression before 'int'
         vector<int> dp = triangle[n-1];
                ^
0_0_37266966_14551.cpp:12:17: error: 'dp' was not declared in this scope
                 dp[j] = min(dp[j],dp[j+1])+triangle[i][j];
                 ^
0_0_37266966_14551.cpp:12:42: error: 'min' was not declared in this scope
                 dp[j] = min(dp[j],dp[j+1])+triangle[i][j];
                                          ^
0_0_37266966_14551.cpp:15:16: error: 'dp' was not declared in this scope
         return dp[0];
                ^


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-26 08:17:16, Gzip enabled