QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#116246#6661. 야유회yyyyxh#Compile Error//C++17271b2023-06-28 12:37:592024-05-31 18:23:58

Judging History

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

  • [2024-05-31 18:23:58]
  • 评测
  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-06-28 12:37:59]
  • 提交

answer

#include "workshop.h"
void init(){}
int morning(int my_num,int right_num){
	return my_num;
}
int afternoon(int left_num,int my_num,int right_num){
	return my_num;
}
int evening(int left_num,int my_num,int right_num){
	mt19937 rng(my_num);
	return rng()%30;
}

詳細信息

answer.code: In function ‘int evening(int, int, int)’:
answer.code:10:9: error: ‘mt19937’ was not declared in this scope
   10 |         mt19937 rng(my_num);
      |         ^~~~~~~
answer.code:11:16: error: ‘rng’ was not declared in this scope
   11 |         return rng()%30;
      |                ^~~