记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:30:6: error: redeclaration of 'int n'
  int n, k;
      ^
/in/foo.cc:6:6: note: 'int n' previously declared here
  int n, k;
      ^
/in/foo.cc:30:9: error: redeclaration of 'int k'
  int n, k;
         ^
/in/foo.cc:6:9: note: 'int k' previously declared here
  int n, k;
         ^
/in/foo.cc:31:6: error: redeclaration of 'int cnt'
  int cnt = 0;
      ^~~
/in/foo.cc:7:6: note: 'int cnt' previously declared here
  int cnt = 0;
      ^~~
/in/foo.cc:33:19: error: redeclaration of 'std::vector<int> num'
  vector<int> num(n);
                   ^
/in/foo.cc:9:14: note: 'std::vector<int> num' previously declared here
  vector<int> num(n);
              ^~~
/in/foo.cc:34:6: error: redeclaration of 'int i'
  int i, j;
      ^
/in/foo.cc:10:6: note: 'int i' previously declared here
  int i, j;
      ^
/in/foo.cc:34:9: error: redeclaration of 'int j'
  int i, j;
         ^
/in/foo.cc:10:9: note: 'int j' previously declared here
  int i, j;
         ^
/in/foo.cc:40:26: error: redeclaration of 'std::vector<std::vector<int> > dp'
  vector<vector<int> > dp(n, vector<int>(n, 0));
                          ^
/in/foo.cc:16:23: note: 'std::vector<std::vector<int> > dp' previously declared here
  vector<vector<int> > dp(n, vector<int>(n, 0));
                       ^~

信息

递交者
类型
递交
题目
P1306 C. Multiple of k
比赛
2021年互联网创新创业科技节程序设计大赛
语言
C++
递交时间
2021-12-23 18:19:40
评测时间
2021-12-23 18:19:40
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes