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_ALDS1_1_C_millorRabin.cpp

Depends on

Code

// competitive-verifier: PROBLEM https://onlinejudge.u-aizu.ac.jp/problems/ALDS1_1_C

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

#include "math/millor_rabin.cpp"

int main() {
	int n;
	cin >> n;
	int res = 0;
	for(int i = 0; i < n; i++) {
		int a;
		cin >> a;
		if(isprime(a)) res++;
	}
	cout << res << 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_ALDS1_1_C_millorRabin.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 9 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 9 ms 3 MB
Back to top page