/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'std::string multiply(std::string, std::string)':
/in/foo.cc:29:5: error: 'vector' was not declared in this scope
   29 |     vector<int> res(m + n, 0);
      |     ^~~~~~
/in/foo.cc:4:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
    3 | #include <algorithm>
  +++ |+#include <vector>
    4 | using namespace std;
/in/foo.cc:29:12: error: expected primary-expression before 'int'
   29 |     vector<int> res(m + n, 0);
      |            ^~~
/in/foo.cc:34:29: error: 'res' was not declared in this scope
   34 |             int sum = mul + res[i + j + 1];
      |                             ^~~
/in/foo.cc:41:20: error: 'res' was not declared in this scope
   41 |     for (int num : res) {
      |                    ^~~

信息

递交者
类型
递交
题目
P1192 星际青蛙(木木版)
语言
C++
递交时间
2025-02-25 00:35:24
评测时间
2025-02-25 00:35:24
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes