/ Vijos /

记录详情

Compile Error

/in/foo.cc:15:42: error: 'vectro' has not been declared
   15 | vector<int> get_new_ball(vector<int>& a, vectro<int>& b){
      |                                          ^~~~~~
/in/foo.cc:15:48: error: expected ',' or '...' before '<' token
   15 | vector<int> get_new_ball(vector<int>& a, vectro<int>& b){
      |                                                ^
/in/foo.cc: In function 'std::vector<int> get_new_ball(std::vector<int>&, int)':
/in/foo.cc:17:20: error: 'b' was not declared in this scope
   17 |         if(a[1] == b[0]){
      |                    ^
/in/foo.cc: In function 'int get_max(std::vector<std::vector<int> >&, std::vector<std::vector<int> >&, int, int)':
/in/foo.cc:46:47: error: no match for call to '(std::ostream {aka std::basic_ostream<char>}) (std::vector<int>&, std::vector<int>&)'
   46 |                                 int sum = cout(ball_left, ball_right);
      |                                           ~~~~^~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'std::vector<int> get_new_ball(std::vector<int>&, int)':
/in/foo.cc:31:1: warning: control reaches end of non-void function [-Wreturn-type]
   31 | }
      | ^

信息

递交者
类型
递交
题目
P1312 能量项链
语言
C++
递交时间
2025-06-25 17:13:35
评测时间
2025-06-25 17:13:35
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes