-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix test cases, redirect output to correct subfolders, update README
- Loading branch information
1 parent
4a6f5c7
commit e628a92
Showing
21 changed files
with
563 additions
and
137 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
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
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 |
---|---|---|
@@ -1 1 @@ | ||
The input program is semantically correct. | ||
The input program is semantically correct. |
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 |
---|---|---|
@@ -1 1 @@ | ||
There is no syntax error. | ||
There is no syntax error. |
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,30 @@ | ||
/* | ||
* Example source code | ||
* | ||
* prints N numbers from Fibonacci sequence | ||
*/ | ||
|
||
void main(void) { | ||
int i; | ||
int N; | ||
int a; | ||
int b; | ||
int tmp; | ||
|
||
i = 0; | ||
a = 0; | ||
b = 1; | ||
tmp = 0; | ||
|
||
N = 20; // how many numbers to print? | ||
|
||
output(0); // always print the first number | ||
|
||
while (i < N) { | ||
output(a b); | ||
tmp = b; | ||
b = a tmp; | ||
a = tmp; | ||
i = i 1; | ||
} | ||
} |
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
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
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 @@ | ||
There is no lexical errors. |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.