cpp_lib

This documentation is automatically generated by competitive-verifier/competitive-verifier

View the Project on GitHub idat50me/cpp_lib

:heavy_check_mark: test/aoj_ITP1_6_B.cpp

Depends on

Code

// competitive-verifier: PROBLEM https://onlinejudge.u-aizu.ac.jp/courses/lesson/2/ITP1/6/ITP1_6_B

#ifndef call_include
#define call_include
#include <bits/stdc++.h>
using namespace std;
#endif

#include "structure/2d_array.cpp"

int main() {
	int N;
	cin >> N;
	v2d card(4, 14, true);
	map<char, int> ch2i = {{'S', 0}, {'H', 1}, {'C', 2}, {'D', 3}};
	map<int, char> i2ch = {{0, 'S'}, {1, 'H'}, {2, 'C'}, {3, 'D'}};

	for(int i = 0; i < N; i++) {
		char ch;
		int num;
		cin >> ch >> num;
		card[ch2i[ch]][num] = false;
	}

	for(int i = 0; i < 4; i++)
		for(int j = 1; j <= 13; j++) {
			if(card[i][j]) {
				cout << i2ch[i] << " " << j << endl;
			}
		}
}
Traceback (most recent call last):
  File "/home/runner/.local/lib/python3.10/site-packages/competitive_verifier/oj_resolve/resolver.py", line 181, in resolve
    bundled_code = language.bundle(path, basedir=basedir)
  File "/home/runner/.local/lib/python3.10/site-packages/competitive_verifier/oj/verify/languages/cplusplus.py", line 252, in bundle
    bundler.update(path)
  File "/home/runner/.local/lib/python3.10/site-packages/competitive_verifier/oj/verify/languages/cplusplus_bundle.py", line 422, in update
    raise BundleErrorAt(
competitive_verifier.oj.verify.languages.cplusplus_bundle.BundleErrorAt: test/aoj_ITP1_6_B.cpp: line 9: found codes out of include guard

Test cases

Env Name Status Elapsed Memory
g++ testcase_00 :heavy_check_mark: AC 6 ms 3 MB
g++ testcase_01 :heavy_check_mark: AC 5 ms 3 MB
g++ testcase_02 :heavy_check_mark: AC 5 ms 3 MB
g++ testcase_03 :heavy_check_mark: AC 5 ms 3 MB
clang++ testcase_00 :heavy_check_mark: AC 5 ms 3 MB
clang++ testcase_01 :heavy_check_mark: AC 5 ms 3 MB
clang++ testcase_02 :heavy_check_mark: AC 5 ms 3 MB
clang++ testcase_03 :heavy_check_mark: AC 5 ms 3 MB
Back to top page