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_37266948_30757.cpp:3:23: error: 'vector' has not been declared
      int minimumTotal(vector<vector<int> > &triangle) {
                       ^
0_0_37266948_30757.cpp:3:29: error: expected ',' or '...' before '<' token
      int minimumTotal(vector<vector<int> > &triangle) {
                             ^
0_0_37266948_30757.cpp: In member function 'int Solution::minimumTotal(int)':
0_0_37266948_30757.cpp:4:23: error: 'triangle' was not declared in this scope
          for (int i = triangle.size() - 2; i >= 0; --i)
                       ^
0_0_37266948_30757.cpp:6:92: error: 'min' was not declared in this scope
                  triangle[i][j] = triangle[i][j] + min(triangle[i+1][j], triangle[i+1][j+1]);
                                                                                            ^
0_0_37266948_30757.cpp:7:17: error: 'triangle' was not declared in this scope
          return triangle[0][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-29 21:06:42, Gzip enabled