QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#760971#9629. 小 C 的神秘图形xtmouseCompile Error//C++14571b2024-11-18 20:26:312024-11-18 20:26:31

Judging History

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

  • [2024-11-18 20:26:31]
  • 评测
  • [2024-11-18 20:26:31]
  • 提交

answer

#include <bits/stdc++.h>

using namespace std;


using i32 = int32_t;
using i64 = long long;


using vi = vector<int>;
using pii = pair<int,int>;

i32 main() {
	ios::sync_with_stdio(false), cin.tie(nullptr);
	int n;
	cin >> n;

	string x, y;
	cin >> x >> y;
	ranges::reverse(x), ranges::reverse(y);

	while(true){
		if((x.back() == '1') or (y.back() == '1')) {
			if(n == 1) {
				cout << 1 << "\n";
				return 0;
			} else {
				x.pop_back(), y.pop_back(), n --;
			}
		}else {
			cout << 0 << "\n";
			return 0;
		}
	}

	return 0;
}	

Details

answer.code: In function ‘i32 main()’:
answer.code:20:9: error: ‘ranges’ has not been declared
   20 |         ranges::reverse(x), ranges::reverse(y);
      |         ^~~~~~
answer.code:20:29: error: ‘ranges’ has not been declared
   20 |         ranges::reverse(x), ranges::reverse(y);
      |                             ^~~~~~