Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compiled_starters/cpp/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ int main(int argc, char* argv[]) {
return 1;
}

// Uncomment the code below to pass the first stage the first stage
// Uncomment this block to pass the first stage
//
// std::string input_line;
// std::getline(std::cin, input_line);
Expand Down
2 changes: 1 addition & 1 deletion compiled_starters/csharp/src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ static bool MatchPattern(string inputLine, string pattern)
// You can use print statements as follows for debugging, they'll be visible when running tests.
Console.Error.WriteLine("Logs from your program will appear here!");

// Uncomment the code below to pass the first stage the first stage
// Uncomment this block to pass the first stage
//
// if (MatchPattern(inputLine, pattern))
// {
Expand Down
2 changes: 1 addition & 1 deletion compiled_starters/gleam/src/main.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub fn main() {
let args = argv.load().arguments
let assert Ok(input_line) = erlang.get_line("")

// Uncomment the code below to pass the first stage the first stage
// Uncomment this to pass the first stage
// case args {
// ["-E", pattern, ..] -> {
// case match_pattern(input_line, pattern) {
Expand Down
2 changes: 1 addition & 1 deletion compiled_starters/go/app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func matchLine(line []byte, pattern string) (bool, error) {
// You can use print statements as follows for debugging, they'll be visible when running tests.
fmt.Fprintln(os.Stderr, "Logs from your program will appear here!")

// Uncomment the code below to pass the first stage the first stage
// Uncomment this to pass the first stage
// ok = bytes.ContainsAny(line, pattern)

return ok, nil
Expand Down
2 changes: 1 addition & 1 deletion compiled_starters/haskell/app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ main = do
-- You can use print statements as follows for debugging, they'll be visible when running tests.
hPutStrLn stderr "Logs from your program will appear here"

-- Uncomment the code below to pass the first stage stage 1
-- Uncomment this block to pass stage 1
-- if head args /= "-E"
-- then do
-- putStrLn "Expected first argument to be '-E'"
Expand Down
2 changes: 1 addition & 1 deletion compiled_starters/java/src/main/java/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static void main(String[] args){
// You can use print statements as follows for debugging, they'll be visible when running tests.
System.err.println("Logs from your program will appear here!");

// Uncomment the code below to pass the first stage the first stage
// Uncomment this block to pass the first stage
//
// if (matchPattern(inputLine, pattern)) {
// System.exit(0);
Expand Down
2 changes: 1 addition & 1 deletion compiled_starters/javascript/app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function main() {
// You can use print statements as follows for debugging, they'll be visible when running tests.
console.error("Logs from your program will appear here");

// Uncomment the code below to pass the first stage the first stage
// Uncomment this block to pass the first stage
// if (matchPattern(inputLine, pattern)) {
// process.exit(0);
// } else {
Expand Down
2 changes: 1 addition & 1 deletion compiled_starters/kotlin/app/src/main/kotlin/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fun main(args: Array<String>) {
// You can use print statements as follows for debugging, they'll be visible when running tests.
System.err.println("Logs from your program will appear here!")

// Uncomment the code below to pass the first stage the first stage
// Uncomment this block to pass the first stage
// if (matchPattern(inputLine, pattern)) {
// exitProcess(0)
// } else {
Expand Down
2 changes: 1 addition & 1 deletion compiled_starters/odin/src/main.odin
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ match_line :: proc(line: string, pattern: string) -> (matched: bool, err: string
// You can use print statements as follows for debugging, they'll be visible when running tests.
fmt.eprintln("Logs from your program will appear here!")

// Uncomment the code below to pass the first stage the first stage
// Uncomment this to pass the first stage
// matched = strings.contains(line, pattern)
return matched, ""
}
Expand Down
2 changes: 1 addition & 1 deletion compiled_starters/php/app/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function match_pattern($input_line, $pattern) {
// You can use print statements as follows for debugging, they'll be visible when running tests.
fwrite(STDERR, "Logs from your program will appear here!\n");

// Uncomment the code below to pass the first stage the first stage
// Uncomment this block to pass the first stage
// if (match_pattern($input_line, $pattern)) {
// exit(0);
// } else {
Expand Down
2 changes: 1 addition & 1 deletion compiled_starters/python/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def main():
# You can use print statements as follows for debugging, they'll be visible when running tests.
print("Logs from your program will appear here!", file=sys.stderr)

# Uncomment the code below to pass the first stage the first stage
# Uncomment this block to pass the first stage
# if match_pattern(input_line, pattern):
# exit(0)
# else:
Expand Down
2 changes: 1 addition & 1 deletion compiled_starters/ruby/app/main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def main
# You can use print statements as follows for debugging, they'll be visible when running tests.
$stderr.puts "Logs from your program will appear here"

# Uncomment the code below to pass the first stage the first stage
# Uncomment this block to pass the first stage
# if match_pattern(input_line, pattern)
# exit 0
# else
Expand Down
2 changes: 1 addition & 1 deletion compiled_starters/rust/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fn main() {

io::stdin().read_line(&mut input_line).unwrap();

// Uncomment the code below to pass the first stage the first stage
// Uncomment this block to pass the first stage
// if match_pattern(&input_line, &pattern) {
// process::exit(0)
// } else {
Expand Down
2 changes: 1 addition & 1 deletion compiled_starters/typescript/app/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if (args[2] !== "-E") {
// You can use print statements as follows for debugging, they'll be visible when running tests.
console.error("Logs from your program will appear here!");

// Uncomment the code below to pass the first stage the first stage
// Uncomment this block to pass the first stage
// if (matchPattern(inputLine, pattern)) {
// process.exit(0);
// } else {
Expand Down
2 changes: 1 addition & 1 deletion compiled_starters/zig/src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub fn main() !void {
// You can use print statements as follows for debugging, they'll be visible when running tests.
std.debug.print("Logs from your program will appear here!\n", .{});

// Uncomment the code below to pass the first stage the first stage
// Uncomment this block to pass the first stage
//
// var input_buffer: [1024]u8 = undefined;
// const input_len = try stdin.read(&input_buffer);
Expand Down
2 changes: 1 addition & 1 deletion solutions/cpp/01-cq2/diff/src/main.cpp.diff
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
return 1;
}

- // Uncomment the code below to pass the first stage the first stage
- // Uncomment this block to pass the first stage
- //
- // std::string input_line;
- // std::getline(std::cin, input_line);
Expand Down
2 changes: 1 addition & 1 deletion solutions/csharp/01-cq2/diff/src/Program.cs.diff
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
-// You can use print statements as follows for debugging, they'll be visible when running tests.
-Console.Error.WriteLine("Logs from your program will appear here!");
-
-// Uncomment the code below to pass the first stage the first stage
-// Uncomment this block to pass the first stage
-//
-// if (MatchPattern(inputLine, pattern))
-// {
Expand Down
2 changes: 1 addition & 1 deletion solutions/gleam/01-cq2/diff/src/main.gleam.diff
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
let args = argv.load().arguments
let assert Ok(input_line) = erlang.get_line("")

- // Uncomment the code below to pass the first stage the first stage
- // Uncomment this to pass the first stage
- // case args {
- // ["-E", pattern, ..] -> {
- // case match_pattern(input_line, pattern) {
Expand Down
2 changes: 1 addition & 1 deletion solutions/go/01-cq2/diff/app/main.go.diff
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
- // You can use print statements as follows for debugging, they'll be visible when running tests.
- fmt.Fprintln(os.Stderr, "Logs from your program will appear here!")
-
- // Uncomment the code below to pass the first stage the first stage
- // Uncomment this to pass the first stage
- // ok = bytes.ContainsAny(line, pattern)
+ ok = bytes.ContainsAny(line, pattern)

Expand Down
2 changes: 1 addition & 1 deletion solutions/haskell/01-cq2/diff/app/Main.hs.diff
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
- -- You can use print statements as follows for debugging, they'll be visible when running tests.
- hPutStrLn stderr "Logs from your program will appear here"
-
- -- Uncomment the code below to pass the first stage stage 1
- -- Uncomment this block to pass stage 1
- -- if head args /= "-E"
- -- then do
- -- putStrLn "Expected first argument to be '-E'"
Expand Down
2 changes: 1 addition & 1 deletion solutions/java/01-cq2/diff/src/main/java/Main.java.diff
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
- // You can use print statements as follows for debugging, they'll be visible when running tests.
- System.err.println("Logs from your program will appear here!");
-
- // Uncomment the code below to pass the first stage the first stage
- // Uncomment this block to pass the first stage
- //
- // if (matchPattern(inputLine, pattern)) {
- // System.exit(0);
Expand Down
2 changes: 1 addition & 1 deletion solutions/javascript/01-cq2/diff/app/main.js.diff
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
- // You can use print statements as follows for debugging, they'll be visible when running tests.
- console.error("Logs from your program will appear here");
-
- // Uncomment the code below to pass the first stage the first stage
- // Uncomment this block to pass the first stage
- // if (matchPattern(inputLine, pattern)) {
- // process.exit(0);
- // } else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
- // You can use print statements as follows for debugging, they'll be visible when running tests.
- System.err.println("Logs from your program will appear here!")
-
- // Uncomment the code below to pass the first stage the first stage
- // Uncomment this block to pass the first stage
- // if (matchPattern(inputLine, pattern)) {
- // exitProcess(0)
- // } else {
Expand Down
2 changes: 1 addition & 1 deletion solutions/odin/01-cq2/diff/src/main.odin.diff
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
- // You can use print statements as follows for debugging, they'll be visible when running tests.
- fmt.eprintln("Logs from your program will appear here!")
-
- // Uncomment the code below to pass the first stage the first stage
- // Uncomment this to pass the first stage
- // matched = strings.contains(line, pattern)
+ matched = strings.contains(line, pattern)
return matched, ""
Expand Down
2 changes: 1 addition & 1 deletion solutions/php/01-cq2/diff/app/main.php.diff
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
-// You can use print statements as follows for debugging, they'll be visible when running tests.
-fwrite(STDERR, "Logs from your program will appear here!\n");
-
-// Uncomment the code below to pass the first stage the first stage
-// Uncomment this block to pass the first stage
-// if (match_pattern($input_line, $pattern)) {
-// exit(0);
-// } else {
Expand Down
2 changes: 1 addition & 1 deletion solutions/python/01-cq2/diff/app/main.py.diff
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
- # You can use print statements as follows for debugging, they'll be visible when running tests.
- print("Logs from your program will appear here!", file=sys.stderr)
-
- # Uncomment the code below to pass the first stage the first stage
- # Uncomment this block to pass the first stage
- # if match_pattern(input_line, pattern):
- # exit(0)
- # else:
Expand Down
2 changes: 1 addition & 1 deletion solutions/ruby/01-cq2/diff/app/main.rb.diff
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
- # You can use print statements as follows for debugging, they'll be visible when running tests.
- $stderr.puts "Logs from your program will appear here"
-
- # Uncomment the code below to pass the first stage the first stage
- # Uncomment this block to pass the first stage
- # if match_pattern(input_line, pattern)
- # exit 0
- # else
Expand Down
2 changes: 1 addition & 1 deletion solutions/rust/01-cq2/diff/src/main.rs.diff
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

io::stdin().read_line(&mut input_line).unwrap();

- // Uncomment the code below to pass the first stage the first stage
- // Uncomment this block to pass the first stage
- // if match_pattern(&input_line, &pattern) {
- // process::exit(0)
- // } else {
Expand Down
2 changes: 1 addition & 1 deletion solutions/typescript/01-cq2/diff/app/main.ts.diff
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
-// You can use print statements as follows for debugging, they'll be visible when running tests.
-console.error("Logs from your program will appear here!");
-
-// Uncomment the code below to pass the first stage the first stage
-// Uncomment this block to pass the first stage
-// if (matchPattern(inputLine, pattern)) {
-// process.exit(0);
-// } else {
Expand Down
2 changes: 1 addition & 1 deletion solutions/zig/01-cq2/diff/src/main.zig.diff
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
+ const input_len = try stdin.read(&input_buffer);
+ const input_slice = input_buffer[0..input_len];

- // Uncomment the code below to pass the first stage the first stage
- // Uncomment this block to pass the first stage
- //
- // var input_buffer: [1024]u8 = undefined;
- // const input_len = try stdin.read(&input_buffer);
Expand Down
2 changes: 1 addition & 1 deletion starter_templates/cpp/code/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ int main(int argc, char* argv[]) {
return 1;
}

// Uncomment the code below to pass the first stage the first stage
// Uncomment this block to pass the first stage
//
// std::string input_line;
// std::getline(std::cin, input_line);
Expand Down
2 changes: 1 addition & 1 deletion starter_templates/csharp/code/src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ static bool MatchPattern(string inputLine, string pattern)
// You can use print statements as follows for debugging, they'll be visible when running tests.
Console.Error.WriteLine("Logs from your program will appear here!");

// Uncomment the code below to pass the first stage the first stage
// Uncomment this block to pass the first stage
//
// if (MatchPattern(inputLine, pattern))
// {
Expand Down
2 changes: 1 addition & 1 deletion starter_templates/gleam/code/src/main.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub fn main() {
let args = argv.load().arguments
let assert Ok(input_line) = erlang.get_line("")

// Uncomment the code below to pass the first stage the first stage
// Uncomment this to pass the first stage
// case args {
// ["-E", pattern, ..] -> {
// case match_pattern(input_line, pattern) {
Expand Down
2 changes: 1 addition & 1 deletion starter_templates/go/code/app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func matchLine(line []byte, pattern string) (bool, error) {
// You can use print statements as follows for debugging, they'll be visible when running tests.
fmt.Fprintln(os.Stderr, "Logs from your program will appear here!")

// Uncomment the code below to pass the first stage the first stage
// Uncomment this to pass the first stage
// ok = bytes.ContainsAny(line, pattern)

return ok, nil
Expand Down
2 changes: 1 addition & 1 deletion starter_templates/haskell/code/app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ main = do
-- You can use print statements as follows for debugging, they'll be visible when running tests.
hPutStrLn stderr "Logs from your program will appear here"

-- Uncomment the code below to pass the first stage stage 1
-- Uncomment this block to pass stage 1
-- if head args /= "-E"
-- then do
-- putStrLn "Expected first argument to be '-E'"
Expand Down
2 changes: 1 addition & 1 deletion starter_templates/java/code/src/main/java/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static void main(String[] args){
// You can use print statements as follows for debugging, they'll be visible when running tests.
System.err.println("Logs from your program will appear here!");

// Uncomment the code below to pass the first stage the first stage
// Uncomment this block to pass the first stage
//
// if (matchPattern(inputLine, pattern)) {
// System.exit(0);
Expand Down
2 changes: 1 addition & 1 deletion starter_templates/javascript/code/app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function main() {
// You can use print statements as follows for debugging, they'll be visible when running tests.
console.error("Logs from your program will appear here");

// Uncomment the code below to pass the first stage the first stage
// Uncomment this block to pass the first stage
// if (matchPattern(inputLine, pattern)) {
// process.exit(0);
// } else {
Expand Down
2 changes: 1 addition & 1 deletion starter_templates/kotlin/code/app/src/main/kotlin/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fun main(args: Array<String>) {
// You can use print statements as follows for debugging, they'll be visible when running tests.
System.err.println("Logs from your program will appear here!")

// Uncomment the code below to pass the first stage the first stage
// Uncomment this block to pass the first stage
// if (matchPattern(inputLine, pattern)) {
// exitProcess(0)
// } else {
Expand Down
2 changes: 1 addition & 1 deletion starter_templates/odin/code/src/main.odin
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ match_line :: proc(line: string, pattern: string) -> (matched: bool, err: string
// You can use print statements as follows for debugging, they'll be visible when running tests.
fmt.eprintln("Logs from your program will appear here!")

// Uncomment the code below to pass the first stage the first stage
// Uncomment this to pass the first stage
// matched = strings.contains(line, pattern)
return matched, ""
}
Expand Down
2 changes: 1 addition & 1 deletion starter_templates/php/code/app/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function match_pattern($input_line, $pattern) {
// You can use print statements as follows for debugging, they'll be visible when running tests.
fwrite(STDERR, "Logs from your program will appear here!\n");

// Uncomment the code below to pass the first stage the first stage
// Uncomment this block to pass the first stage
// if (match_pattern($input_line, $pattern)) {
// exit(0);
// } else {
Expand Down
2 changes: 1 addition & 1 deletion starter_templates/python/code/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def main():
# You can use print statements as follows for debugging, they'll be visible when running tests.
print("Logs from your program will appear here!", file=sys.stderr)

# Uncomment the code below to pass the first stage the first stage
# Uncomment this block to pass the first stage
# if match_pattern(input_line, pattern):
# exit(0)
# else:
Expand Down
2 changes: 1 addition & 1 deletion starter_templates/ruby/code/app/main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def main
# You can use print statements as follows for debugging, they'll be visible when running tests.
$stderr.puts "Logs from your program will appear here"

# Uncomment the code below to pass the first stage the first stage
# Uncomment this block to pass the first stage
# if match_pattern(input_line, pattern)
# exit 0
# else
Expand Down
2 changes: 1 addition & 1 deletion starter_templates/rust/code/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fn main() {

io::stdin().read_line(&mut input_line).unwrap();

// Uncomment the code below to pass the first stage the first stage
// Uncomment this block to pass the first stage
// if match_pattern(&input_line, &pattern) {
// process::exit(0)
// } else {
Expand Down
2 changes: 1 addition & 1 deletion starter_templates/typescript/code/app/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if (args[2] !== "-E") {
// You can use print statements as follows for debugging, they'll be visible when running tests.
console.error("Logs from your program will appear here!");

// Uncomment the code below to pass the first stage the first stage
// Uncomment this block to pass the first stage
// if (matchPattern(inputLine, pattern)) {
// process.exit(0);
// } else {
Expand Down
Loading
Loading