Giter Site home page Giter Site logo

Comments (2)

wvaughn409 avatar wvaughn409 commented on August 31, 2024

was able to resolve the by following responses after this post:

#12 (comment)

from code_contests.

wvaughn409 avatar wvaughn409 commented on August 31, 2024

Resolution:
#12 (comment)

Now getting the correct output:
`bazel run -c opt execution:solve_example -- --valid_path=/tmp/dm-code_contests/code_contests_valid.riegeli
DEBUG: Rule 'com_github_grpc_grpc' indicated that a canonical reproducible form can be obtained by modifying arguments commit = "96b73272eadc01afb5fb45b92b408c47e4387274", shallow_since = "1624063996 -0700" and dropping ["tag"]
DEBUG: Repository com_github_grpc_grpc instantiated at:
/home/gitlab/code_contests/WORKSPACE:4:15: in
Repository rule git_repository defined at:
/home/gitlab/.cache/bazel/_bazel_gitlab/a7d5da11616e839ae2061597598e3127/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in
DEBUG: Rule 'com_google_sandboxed_api' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1645093884 -0800"
DEBUG: Repository com_google_sandboxed_api instantiated at:
/home/gitlab/code_contests/WORKSPACE:109:6: in
/home/gitlab/.cache/bazel/_bazel_gitlab/a7d5da11616e839ae2061597598e3127/external/bazel_tools/tools/build_defs/repo/utils.bzl:233:18: in maybe
Repository rule git_repository defined at:
/home/gitlab/.cache/bazel/_bazel_gitlab/a7d5da11616e839ae2061597598e3127/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in
DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments commit = "cc7b1b53234cd7a8f50d90ac3933b240dcf4cd97", shallow_since = "1641866895 -0800" and dropping ["tag"]
DEBUG: Repository com_google_protobuf instantiated at:
/home/gitlab/code_contests/WORKSPACE:22:15: in
Repository rule git_repository defined at:
/home/gitlab/.cache/bazel/_bazel_gitlab/a7d5da11616e839ae2061597598e3127/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in
DEBUG: Rule 'com_google_absl' indicated that a canonical reproducible form can be obtained by modifying arguments commit = "215105818dfde3174fe799600bb0f3cae233d0bf", shallow_since = "1635953174 -0400" and dropping ["tag"]
DEBUG: Repository com_google_absl instantiated at:
/home/gitlab/code_contests/WORKSPACE:28:15: in
Repository rule git_repository defined at:
/home/gitlab/.cache/bazel/_bazel_gitlab/a7d5da11616e839ae2061597598e3127/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in
DEBUG: Rule 'rules_python' indicated that a canonical reproducible form can be obtained by modifying arguments commit = "76ef44fdb8aaa8d5c607721ffe1b1cbf1e8f08dd", shallow_since = "1635214215 -0700" and dropping ["tag"]
DEBUG: Repository rules_python instantiated at:
/home/gitlab/code_contests/WORKSPACE:14:15: in
Repository rule git_repository defined at:
/home/gitlab/.cache/bazel/_bazel_gitlab/a7d5da11616e839ae2061597598e3127/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in
INFO: Analyzed target //execution:solve_example (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
Target //execution:solve_example up-to-date:
bazel-bin/execution/solve_example
INFO: Elapsed time: 0.216s, Critical Path: 0.00s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action
INFO: Build completed successfully, 1 total action
We will try to solve "Gregor and Cryptography":
https://codeforces.com/problemset/problem/1549/A

We will run:

  1. A program that does not compile.
  2. A program that runs successfully, but gives the wrong answer sometimes.
  3. A correct solution.

An invalid program is reported as not compiling:

[global_forkclient.cc : 122] RAW: Starting global forkserver
Compilation failed


The bad solution passes a few tests but then fails.
Because we set stop_on_first_failure to True, we stop once we see a failure.
We are running on 4 threads, so it's possible that more than one failure occurs
before all threads stop.

Compilation succeeded
Test 0 passed.
Test 1 passed.
Test 2 failed.
Test 3 passed.
Test 4 failed.
Test 5 passed.
Test 6 failed.
Test 7 did not run.
Test 8 did not run.
Test 9 did not run.


The good solution passes all tests.

Compilation succeeded
Test 0 passed.
Test 1 passed.
Test 2 passed.
Test 3 passed.
Test 4 passed.
Test 5 passed.
Test 6 passed.
Test 7 passed.
Test 8 passed.
Test 9 passed.`

from code_contests.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.