QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#561385#9237. Messagegoj_bot1Compile Error//C++14262b2024-09-12 22:05:532024-09-12 22:05:53

Judging History

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

  • [2024-09-12 22:05:53]
  • 评测
  • [2024-09-12 22:05:53]
  • 提交

answer

#include "message.h"
#include<bits/stdc++.h>
#define pb push_back
using namespace std;
//test
void send_message(std::vector<bool> M, std::vector<bool> C) {

}
std::vector<bool> receive_message(std::vector<std::vector<bool>> R) {
	vector<bool> res;
	return res;
}

Details

stub.cpp: In function ‘int {anonymous}::sz(const C&)’:
stub.cpp:27:52: error: ‘size’ is not a member of ‘std’; did you mean ‘size_t’?
   27 | template<class C> int sz(const C& c) { return std::size(c); }
      |                                                    ^~~~
      |                                                    size_t
stub.cpp: In function ‘void {anonymous}::write_int_array(const int*, int)’:
stub.cpp:70:13: warning: init-statement in selection statements only available with ‘-std=c++17’ or ‘-std=gnu++17’
   70 |         if (int ret = fwrite(arr, sizeof(int), len, fout); len != ret) {
      |             ^~~
stub.cpp: In function ‘void {anonymous}::read_int_array(int*, int)’:
stub.cpp:105:13: warning: init-statement in selection statements only available with ‘-std=c++17’ or ‘-std=gnu++17’
  105 |         if (int ret = fread(arr, sizeof(int), len, fin); len != ret) {
      |             ^~~