QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#125582#90. Fishing GameQwerty1232Compile Error//C++20208b2023-07-16 22:27:552023-07-16 22:27:57

Judging History

你现在查看的是最新测评结果

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-07-16 22:27:57]
  • 评测
  • [2023-07-16 22:27:55]
  • 提交

answer

#include <bits/stdc++.h>

//#include "permutation.h"

std::mt19937 rnd(2086);

int main() {
	n = 7;
    std::vector<int> vec(n);
    std::shuffle(vec.begin(), vec.begin() + 4, rnd);
    return;
}

Details

answer.code: In function ‘int main()’:
answer.code:8:9: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
    8 |         n = 7;
      |         ^
      |         yn
answer.code:11:5: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
   11 |     return;
      |     ^~~~~~