-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(grader): consider communication TLE as TLE, not ERR (#503)
- Loading branch information
Showing
4 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...ls-grader-engines/src/integTest/resources/engines/interactive/helper/communicator-TLE.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#include <cstdio> | ||
#include <cstdlib> | ||
#include <cstring> | ||
|
||
int N; | ||
|
||
int main(int argc, char* argv[]) | ||
{ | ||
FILE* in = fopen(argv[1], "r"); | ||
fscanf(in, "%d", &N); | ||
|
||
return 10; | ||
} |
4 changes: 4 additions & 0 deletions
4
...-engines/src/integTest/resources/engines/interactive/source/trigger-communication-TLE.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// This solution intentionally TLE to trigger the whole communication to get TLE. | ||
int main() { | ||
return 10; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters