diff --git a/tested/manual.py b/tested/manual.py index 78e6574d..ad1dc353 100644 --- a/tested/manual.py +++ b/tested/manual.py @@ -24,7 +24,7 @@ def read_config() -> DodonaConfig: programming_language=SupportedLanguage("cpp"), natural_language="nl", resources=Path(exercise_dir, "evaluation"), - source=Path(exercise_dir, "solution/correct.cpp"), + source=Path(exercise_dir, "solution/run-error.cpp"), judge=Path("."), workdir=Path("workdir"), test_suite="two.tson", diff --git a/tests/exercises/echo/solution/run-error.cpp b/tests/exercises/echo/solution/run-error.cpp new file mode 100644 index 00000000..25a91b6d --- /dev/null +++ b/tests/exercises/echo/solution/run-error.cpp @@ -0,0 +1,20 @@ + +#include + +using namespace std; + +int main() { + int x = 1; + int y = 0; + int z = x/y; + + string input; + + // Read a line from standard input + getline(cin, input); + + // Output the same line + cout << input << endl; + + return 0; +} \ No newline at end of file