Installation issues
Command not found: quicktest
Command not found: quicktest
Problem: The
quicktest or qt command is not recognized.Solutions:-
Verify installation completed successfully:
-
Check if the installation directory is in your PATH:
-
Try reopening your terminal or reloading your shell configuration:
- Reinstall Quick Test CLI following the installation guide
Compiler not found (g++, javac, etc.)
Compiler not found (g++, javac, etc.)
Problem: Error message like “g++: command not found” or “javac: command not found”.Solution: Install the required compiler for your language:Verify installation:
- C++ (g++)
- Java
- Python 3
Linux (Ubuntu/Debian):macOS:Windows:
Install MinGW or use WSL (Windows Subsystem for Linux)
Permission denied errors
Permission denied errors
Problem: Permission errors when running quicktest.Solutions:
-
Make sure you have write permissions in the working directory:
-
Ensure the
.qt/directory can be created: -
On Unix systems, check if compiled binaries are executable:
Compilation errors
Compilation failed for target/correct/gen file
Compilation failed for target/correct/gen file
Problem: Quick Test reports compilation failure.Debugging steps:
-
Compile manually to see the full error message:
-
Common causes:
- Syntax errors in your code
- Missing headers (
#include <bits/stdc++.h>) - Wrong C++ standard (Quick Test uses C++17)
-
Check if your code compiles without
-DONLINE_JUDGE=1:
Java: Main class not found
Java: Main class not found
Problem: Error message “Could not find or load main class Main”.Solution:
-
Ensure your main class is named
Main: -
File must be named
Main.java -
Clear the
.qt/directory and retry:
Rust: cargo build failed
Rust: cargo build failed
Problem: Rust compilation errors with cargo.Solutions:
-
Ensure Rust and cargo are installed:
-
Check if
~/.quicktest/rust/directory exists and is properly initialized: -
Manually initialize if needed:
-
Clean the cargo cache:
Runtime errors
All test cases show RTE (Runtime Error)
All test cases show RTE (Runtime Error)
Problem: Every test case fails with runtime error.Common causes:
-
Array index out of bounds: Check loop conditions
-
Division by zero: Add checks before division
- Stack overflow: Reduce recursion depth or use iteration
-
Memory allocation: Check if memory limits are appropriate:
Generator crashes or produces invalid input
Generator crashes or produces invalid input
Problem: The generator file exits with an error or creates malformed input.Solutions:
-
Test the generator manually:
-
Ensure generator accepts seed argument:
- Validate generated output format matches expected input format
Checker always returns NO
Checker always returns NO
Problem: In
check mode, the checker rejects all outputs.Solutions:-
Verify the checker reads input from the correct location:
-
Test the checker manually:
-
Ensure checker outputs exactly “YES” or “NO”:
Wrong Answer issues
Getting WA but can't find the bug
Getting WA but can't find the bug
Problem: Stress test finds wrong answers but the bug isn’t obvious.Debugging workflow:
-
Save the failing test case:
-
Examine the saved test case:
-
Run both solutions manually and compare:
-
Use
--diffto see exact differences: -
Add debug output to your solution (remove before submitting):
WA on edge cases only
WA on edge cases only
Problem: Solution passes most tests but fails on edge cases.Common edge cases to test:Modify generator to include edge cases:
- Minimum input: n = 1, array with one element
- Maximum input: n = 10^5, large numbers
- Zero values: All zeros, negative numbers
- Empty subsets: No valid answer exists
Performance issues
All test cases timeout (TLE)
All test cases timeout (TLE)
Problem: Every test exceeds the time limit.Solutions:
-
Check if timeout is reasonable:
-
Test algorithm complexity: Your solution might be too slow
- O(n²) when O(n log n) is needed
- O(2^n) when O(n²) is needed
-
Reduce generator constraints temporarily:
-
Test compiled binary directly:
-
Enable compiler optimizations (for local testing):
Online judges use different optimization flags, so local performance may differ.
Stress testing is very slow
Stress testing is very slow
Problem: Running stress tests takes too long.Optimizations:
-
Reduce test cases for initial testing:
-
Use
--breakto stop on first failure: - Reduce generator complexity: Generate smaller test cases
-
Test correct solution speed separately:
If the correct solution is too slow, reduce input size in generator.
Memory limit exceeded
Memory limit exceeded
Problem: Solutions crash with memory errors.Solutions:
-
Increase memory limit:
- Check for memory leaks: Use vectors instead of manual allocation
-
Reduce array sizes: Optimize memory usage
File and path issues
File not found errors
File not found errors
Problem: Quick Test can’t find the specified files.Solutions:
-
Check file paths: Ensure files exist in the current directory
-
Use relative paths correctly:
-
Check file extensions match your language:
- C++:
.cpp,.cc,.cxx - Python:
.py - Java:
.java - Rust:
.rs
- C++:
Test case files not found (--prefix)
Test case files not found (--prefix)
Problem: When using
--prefix, test files are not detected.Solutions:-
Verify test files exist:
-
Use correct prefix format:
-
Check file naming convention: Files should be numbered sequentially
macOS-specific issues
macOS compatibility warnings
macOS compatibility warnings
Note: Quick Test has been tested on Windows and Linux but not extensively on macOS.Known considerations:
- Case-sensitive filenames: macOS filesystem is case-insensitive by default
- Compilation commands: May differ slightly from Linux
-
File paths: Use Unix-style paths (
/Users/...not~)
- Report them at GitHub Issues
- Consider using a Linux virtual machine or Docker for consistent behavior
Getting help
View command help
Check version
Report bugs
Report issues on GitHub with:
- OS and version
- Quick Test version
- Full command used
- Error messages
View examples
See working examples for reference