diff --git a/compiled_starters/c/src/main.c b/compiled_starters/c/src/main.c index 7603048..70b90bb 100644 --- a/compiled_starters/c/src/main.c +++ b/compiled_starters/c/src/main.c @@ -15,7 +15,7 @@ int main() { // You can use print statements as follows for debugging, they'll be visible when running tests. printf("Logs from your program will appear here!\n"); - // Uncomment this block to pass the first stage + // Uncomment the code below to pass the first stage // // int server_fd, client_addr_len; // struct sockaddr_in client_addr; diff --git a/compiled_starters/clojure/src/http_server/core.clj b/compiled_starters/clojure/src/http_server/core.clj index 7c4f444..abeeda5 100644 --- a/compiled_starters/clojure/src/http_server/core.clj +++ b/compiled_starters/clojure/src/http_server/core.clj @@ -18,7 +18,7 @@ ;; You can use print statements as follows for debugging, they'll be visible when running tests. (println "Logs from your program will appear here!") - ;; Uncomment this block to pass the first stage + ;; Uncomment the code below to pass the first stage ;;(serve) ) diff --git a/compiled_starters/cpp/src/main.cpp b/compiled_starters/cpp/src/main.cpp index cba80ef..9ac8dbf 100644 --- a/compiled_starters/cpp/src/main.cpp +++ b/compiled_starters/cpp/src/main.cpp @@ -16,7 +16,7 @@ int main(int argc, char **argv) { // You can use print statements as follows for debugging, they'll be visible when running tests. std::cout << "Logs from your program will appear here!\n"; - // Uncomment this block to pass the first stage + // Uncomment the code below to pass the first stage // // int server_fd = socket(AF_INET, SOCK_STREAM, 0); // if (server_fd < 0) { diff --git a/compiled_starters/csharp/src/Server.cs b/compiled_starters/csharp/src/Server.cs index a3a3099..db0bfa1 100644 --- a/compiled_starters/csharp/src/Server.cs +++ b/compiled_starters/csharp/src/Server.cs @@ -4,7 +4,7 @@ // You can use print statements as follows for debugging, they'll be visible when running tests. Console.WriteLine("Logs from your program will appear here!"); -// Uncomment this block to pass the first stage +// Uncomment the code below to pass the first stage // TcpListener server = new TcpListener(IPAddress.Any, 4221); // server.Start(); // server.AcceptSocket(); // wait for client diff --git a/compiled_starters/elixir/lib/main.ex b/compiled_starters/elixir/lib/main.ex index 4d03b28..33e53f3 100644 --- a/compiled_starters/elixir/lib/main.ex +++ b/compiled_starters/elixir/lib/main.ex @@ -9,7 +9,7 @@ defmodule Server do # You can use print statements as follows for debugging, they'll be visible when running tests. IO.puts("Logs from your program will appear here!") - # Uncomment this block to pass the first stage + # Uncomment the code below to pass the first stage # # # Since the tester restarts your program quite often, setting SO_REUSEADDR # # ensures that we don't run into 'Address already in use' errors diff --git a/compiled_starters/gleam/src/main.gleam b/compiled_starters/gleam/src/main.gleam index 1f22fbe..3957e90 100644 --- a/compiled_starters/gleam/src/main.gleam +++ b/compiled_starters/gleam/src/main.gleam @@ -16,7 +16,7 @@ pub fn main() { // You can use print statements as follows for debugging, they'll be visible when running tests. io.println("Logs from your program will appear here!") - // Uncomment this block to pass the first stage + // Uncomment the code below to pass the first stage // // let assert Ok(_) = // glisten.handler(fn(_conn) { #(Nil, None) }, fn(_msg, state, _conn) { diff --git a/compiled_starters/go/app/main.go b/compiled_starters/go/app/main.go index eba0a22..bb7e9e4 100644 --- a/compiled_starters/go/app/main.go +++ b/compiled_starters/go/app/main.go @@ -14,7 +14,7 @@ func main() { // You can use print statements as follows for debugging, they'll be visible when running tests. fmt.Println("Logs from your program will appear here!") - // Uncomment this block to pass the first stage + // Uncomment the code below to pass the first stage // // l, err := net.Listen("tcp", "0.0.0.0:4221") // if err != nil { diff --git a/compiled_starters/java/src/main/java/Main.java b/compiled_starters/java/src/main/java/Main.java index b2fa2a8..3f7694d 100644 --- a/compiled_starters/java/src/main/java/Main.java +++ b/compiled_starters/java/src/main/java/Main.java @@ -7,7 +7,7 @@ public static void main(String[] args) { // You can use print statements as follows for debugging, they'll be visible when running tests. System.out.println("Logs from your program will appear here!"); - // Uncomment this block to pass the first stage + // Uncomment the code below to pass the first stage // // try { // ServerSocket serverSocket = new ServerSocket(4221); diff --git a/compiled_starters/kotlin/app/src/main/kotlin/App.kt b/compiled_starters/kotlin/app/src/main/kotlin/App.kt index f52925b..d7e196a 100644 --- a/compiled_starters/kotlin/app/src/main/kotlin/App.kt +++ b/compiled_starters/kotlin/app/src/main/kotlin/App.kt @@ -4,7 +4,7 @@ fun main() { // You can use print statements as follows for debugging, they'll be visible when running tests. println("Logs from your program will appear here!") - // Uncomment this block to pass the first stage + // Uncomment the code below to pass the first stage // var serverSocket = ServerSocket(4221) // // // Since the tester restarts your program quite often, setting SO_REUSEADDR diff --git a/compiled_starters/rust/src/main.rs b/compiled_starters/rust/src/main.rs index 5084dd2..fa9b8fc 100644 --- a/compiled_starters/rust/src/main.rs +++ b/compiled_starters/rust/src/main.rs @@ -5,7 +5,7 @@ fn main() { // You can use print statements as follows for debugging, they'll be visible when running tests. println!("Logs from your program will appear here!"); - // Uncomment this block to pass the first stage + // Uncomment the code below to pass the first stage // // let listener = TcpListener::bind("127.0.0.1:4221").unwrap(); // diff --git a/compiled_starters/zig/src/main.zig b/compiled_starters/zig/src/main.zig index 0e9e05c..e3aece9 100644 --- a/compiled_starters/zig/src/main.zig +++ b/compiled_starters/zig/src/main.zig @@ -5,7 +5,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 this block to pass the first stage + // Uncomment the code below to pass the first stage // const address = try net.Address.resolveIp("127.0.0.1", 4221); // var listener = try address.listen(.{ // .reuse_address = true, diff --git a/solutions/c/01-at4/diff/src/main.c.diff b/solutions/c/01-at4/diff/src/main.c.diff index 69aea09..9886ad3 100644 --- a/solutions/c/01-at4/diff/src/main.c.diff +++ b/solutions/c/01-at4/diff/src/main.c.diff @@ -18,7 +18,7 @@ + int server_fd, client_addr_len; + struct sockaddr_in client_addr; -- // Uncomment this block to pass the first stage +- // Uncomment the code below to pass the first stage - // - // int server_fd, client_addr_len; - // struct sockaddr_in client_addr; diff --git a/solutions/clojure/01-at4/diff/src/http_server/core.clj.diff b/solutions/clojure/01-at4/diff/src/http_server/core.clj.diff index 11cbf7a..eeb1b77 100644 --- a/solutions/clojure/01-at4/diff/src/http_server/core.clj.diff +++ b/solutions/clojure/01-at4/diff/src/http_server/core.clj.diff @@ -19,7 +19,7 @@ - ;; You can use print statements as follows for debugging, they'll be visible when running tests. - (println "Logs from your program will appear here!") - -- ;; Uncomment this block to pass the first stage +- ;; Uncomment the code below to pass the first stage - ;;(serve) + (serve) diff --git a/solutions/cpp/01-at4/diff/src/main.cpp.diff b/solutions/cpp/01-at4/diff/src/main.cpp.diff index 6253694..b85c715 100644 --- a/solutions/cpp/01-at4/diff/src/main.cpp.diff +++ b/solutions/cpp/01-at4/diff/src/main.cpp.diff @@ -22,7 +22,7 @@ + return 1; + } -- // Uncomment this block to pass the first stage +- // Uncomment the code below to pass the first stage - // - // int server_fd = socket(AF_INET, SOCK_STREAM, 0); - // if (server_fd < 0) { diff --git a/solutions/csharp/01-at4/diff/src/Server.cs.diff b/solutions/csharp/01-at4/diff/src/Server.cs.diff index 130eb38..89c36e4 100644 --- a/solutions/csharp/01-at4/diff/src/Server.cs.diff +++ b/solutions/csharp/01-at4/diff/src/Server.cs.diff @@ -5,7 +5,7 @@ -// You can use print statements as follows for debugging, they'll be visible when running tests. -Console.WriteLine("Logs from your program will appear here!"); - --// Uncomment this block to pass the first stage +-// Uncomment the code below to pass the first stage -// TcpListener server = new TcpListener(IPAddress.Any, 4221); -// server.Start(); -// server.AcceptSocket(); // wait for client diff --git a/solutions/elixir/01-at4/diff/lib/main.ex.diff b/solutions/elixir/01-at4/diff/lib/main.ex.diff index a9e0c6e..c69ed7b 100644 --- a/solutions/elixir/01-at4/diff/lib/main.ex.diff +++ b/solutions/elixir/01-at4/diff/lib/main.ex.diff @@ -10,7 +10,7 @@ - # You can use print statements as follows for debugging, they'll be visible when running tests. - IO.puts("Logs from your program will appear here!") - -- # Uncomment this block to pass the first stage +- # Uncomment the code below to pass the first stage - # - # # Since the tester restarts your program quite often, setting SO_REUSEADDR - # # ensures that we don't run into 'Address already in use' errors diff --git a/solutions/gleam/01-at4/diff/src/main.gleam.diff b/solutions/gleam/01-at4/diff/src/main.gleam.diff index 50b5c9f..4386fc4 100644 --- a/solutions/gleam/01-at4/diff/src/main.gleam.diff +++ b/solutions/gleam/01-at4/diff/src/main.gleam.diff @@ -17,7 +17,7 @@ - // You can use print statements as follows for debugging, they'll be visible when running tests. - io.println("Logs from your program will appear here!") - -- // Uncomment this block to pass the first stage +- // Uncomment the code below to pass the first stage - // - // let assert Ok(_) = - // glisten.handler(fn(_conn) { #(Nil, None) }, fn(_msg, state, _conn) { diff --git a/solutions/go/01-at4/diff/app/main.go.diff b/solutions/go/01-at4/diff/app/main.go.diff index 116322d..9b559fd 100644 --- a/solutions/go/01-at4/diff/app/main.go.diff +++ b/solutions/go/01-at4/diff/app/main.go.diff @@ -20,7 +20,7 @@ + os.Exit(1) + } -- // Uncomment this block to pass the first stage +- // Uncomment the code below to pass the first stage - // - // l, err := net.Listen("tcp", "0.0.0.0:4221") - // if err != nil { diff --git a/solutions/java/01-at4/diff/src/main/java/Main.java.diff b/solutions/java/01-at4/diff/src/main/java/Main.java.diff index 0d746fd..c962f13 100644 --- a/solutions/java/01-at4/diff/src/main/java/Main.java.diff +++ b/solutions/java/01-at4/diff/src/main/java/Main.java.diff @@ -10,7 +10,7 @@ + try { + ServerSocket serverSocket = new ServerSocket(4221); -- // Uncomment this block to pass the first stage +- // Uncomment the code below to pass the first stage - // - // try { - // ServerSocket serverSocket = new ServerSocket(4221); diff --git a/solutions/kotlin/01-at4/diff/app/src/main/kotlin/App.kt.diff b/solutions/kotlin/01-at4/diff/app/src/main/kotlin/App.kt.diff index d3c8ae1..0c66475 100644 --- a/solutions/kotlin/01-at4/diff/app/src/main/kotlin/App.kt.diff +++ b/solutions/kotlin/01-at4/diff/app/src/main/kotlin/App.kt.diff @@ -6,7 +6,7 @@ - println("Logs from your program will appear here!") + var serverSocket = ServerSocket(4221) -- // Uncomment this block to pass the first stage +- // Uncomment the code below to pass the first stage - // var serverSocket = ServerSocket(4221) - // - // // Since the tester restarts your program quite often, setting SO_REUSEADDR diff --git a/solutions/rust/01-at4/diff/src/main.rs.diff b/solutions/rust/01-at4/diff/src/main.rs.diff index b175a97..3aa1262 100644 --- a/solutions/rust/01-at4/diff/src/main.rs.diff +++ b/solutions/rust/01-at4/diff/src/main.rs.diff @@ -7,7 +7,7 @@ - println!("Logs from your program will appear here!"); + let listener = TcpListener::bind("127.0.0.1:4221").unwrap(); -- // Uncomment this block to pass the first stage +- // Uncomment the code below to pass the first stage - // - // let listener = TcpListener::bind("127.0.0.1:4221").unwrap(); - // diff --git a/solutions/zig/01-at4/diff/src/main.zig.diff b/solutions/zig/01-at4/diff/src/main.zig.diff index c587eee..567ed13 100644 --- a/solutions/zig/01-at4/diff/src/main.zig.diff +++ b/solutions/zig/01-at4/diff/src/main.zig.diff @@ -11,7 +11,7 @@ + }); + defer listener.deinit(); -- // Uncomment this block to pass the first stage +- // Uncomment the code below to pass the first stage - // const address = try net.Address.resolveIp("127.0.0.1", 4221); - // var listener = try address.listen(.{ - // .reuse_address = true, diff --git a/starter_templates/c/code/src/main.c b/starter_templates/c/code/src/main.c index 7603048..70b90bb 100644 --- a/starter_templates/c/code/src/main.c +++ b/starter_templates/c/code/src/main.c @@ -15,7 +15,7 @@ int main() { // You can use print statements as follows for debugging, they'll be visible when running tests. printf("Logs from your program will appear here!\n"); - // Uncomment this block to pass the first stage + // Uncomment the code below to pass the first stage // // int server_fd, client_addr_len; // struct sockaddr_in client_addr; diff --git a/starter_templates/clojure/code/src/http_server/core.clj b/starter_templates/clojure/code/src/http_server/core.clj index 7c4f444..abeeda5 100644 --- a/starter_templates/clojure/code/src/http_server/core.clj +++ b/starter_templates/clojure/code/src/http_server/core.clj @@ -18,7 +18,7 @@ ;; You can use print statements as follows for debugging, they'll be visible when running tests. (println "Logs from your program will appear here!") - ;; Uncomment this block to pass the first stage + ;; Uncomment the code below to pass the first stage ;;(serve) ) diff --git a/starter_templates/cpp/code/src/main.cpp b/starter_templates/cpp/code/src/main.cpp index cba80ef..9ac8dbf 100644 --- a/starter_templates/cpp/code/src/main.cpp +++ b/starter_templates/cpp/code/src/main.cpp @@ -16,7 +16,7 @@ int main(int argc, char **argv) { // You can use print statements as follows for debugging, they'll be visible when running tests. std::cout << "Logs from your program will appear here!\n"; - // Uncomment this block to pass the first stage + // Uncomment the code below to pass the first stage // // int server_fd = socket(AF_INET, SOCK_STREAM, 0); // if (server_fd < 0) { diff --git a/starter_templates/csharp/code/src/Server.cs b/starter_templates/csharp/code/src/Server.cs index a3a3099..db0bfa1 100644 --- a/starter_templates/csharp/code/src/Server.cs +++ b/starter_templates/csharp/code/src/Server.cs @@ -4,7 +4,7 @@ // You can use print statements as follows for debugging, they'll be visible when running tests. Console.WriteLine("Logs from your program will appear here!"); -// Uncomment this block to pass the first stage +// Uncomment the code below to pass the first stage // TcpListener server = new TcpListener(IPAddress.Any, 4221); // server.Start(); // server.AcceptSocket(); // wait for client diff --git a/starter_templates/elixir/code/lib/main.ex b/starter_templates/elixir/code/lib/main.ex index 4d03b28..33e53f3 100644 --- a/starter_templates/elixir/code/lib/main.ex +++ b/starter_templates/elixir/code/lib/main.ex @@ -9,7 +9,7 @@ defmodule Server do # You can use print statements as follows for debugging, they'll be visible when running tests. IO.puts("Logs from your program will appear here!") - # Uncomment this block to pass the first stage + # Uncomment the code below to pass the first stage # # # Since the tester restarts your program quite often, setting SO_REUSEADDR # # ensures that we don't run into 'Address already in use' errors diff --git a/starter_templates/gleam/code/src/main.gleam b/starter_templates/gleam/code/src/main.gleam index 1f22fbe..3957e90 100644 --- a/starter_templates/gleam/code/src/main.gleam +++ b/starter_templates/gleam/code/src/main.gleam @@ -16,7 +16,7 @@ pub fn main() { // You can use print statements as follows for debugging, they'll be visible when running tests. io.println("Logs from your program will appear here!") - // Uncomment this block to pass the first stage + // Uncomment the code below to pass the first stage // // let assert Ok(_) = // glisten.handler(fn(_conn) { #(Nil, None) }, fn(_msg, state, _conn) { diff --git a/starter_templates/go/code/app/main.go b/starter_templates/go/code/app/main.go index eba0a22..bb7e9e4 100644 --- a/starter_templates/go/code/app/main.go +++ b/starter_templates/go/code/app/main.go @@ -14,7 +14,7 @@ func main() { // You can use print statements as follows for debugging, they'll be visible when running tests. fmt.Println("Logs from your program will appear here!") - // Uncomment this block to pass the first stage + // Uncomment the code below to pass the first stage // // l, err := net.Listen("tcp", "0.0.0.0:4221") // if err != nil { diff --git a/starter_templates/java/code/src/main/java/Main.java b/starter_templates/java/code/src/main/java/Main.java index b2fa2a8..3f7694d 100644 --- a/starter_templates/java/code/src/main/java/Main.java +++ b/starter_templates/java/code/src/main/java/Main.java @@ -7,7 +7,7 @@ public static void main(String[] args) { // You can use print statements as follows for debugging, they'll be visible when running tests. System.out.println("Logs from your program will appear here!"); - // Uncomment this block to pass the first stage + // Uncomment the code below to pass the first stage // // try { // ServerSocket serverSocket = new ServerSocket(4221); diff --git a/starter_templates/kotlin/code/app/src/main/kotlin/App.kt b/starter_templates/kotlin/code/app/src/main/kotlin/App.kt index f52925b..d7e196a 100644 --- a/starter_templates/kotlin/code/app/src/main/kotlin/App.kt +++ b/starter_templates/kotlin/code/app/src/main/kotlin/App.kt @@ -4,7 +4,7 @@ fun main() { // You can use print statements as follows for debugging, they'll be visible when running tests. println("Logs from your program will appear here!") - // Uncomment this block to pass the first stage + // Uncomment the code below to pass the first stage // var serverSocket = ServerSocket(4221) // // // Since the tester restarts your program quite often, setting SO_REUSEADDR diff --git a/starter_templates/rust/code/src/main.rs b/starter_templates/rust/code/src/main.rs index 5084dd2..fa9b8fc 100644 --- a/starter_templates/rust/code/src/main.rs +++ b/starter_templates/rust/code/src/main.rs @@ -5,7 +5,7 @@ fn main() { // You can use print statements as follows for debugging, they'll be visible when running tests. println!("Logs from your program will appear here!"); - // Uncomment this block to pass the first stage + // Uncomment the code below to pass the first stage // // let listener = TcpListener::bind("127.0.0.1:4221").unwrap(); // diff --git a/starter_templates/zig/code/src/main.zig b/starter_templates/zig/code/src/main.zig index 0e9e05c..e3aece9 100644 --- a/starter_templates/zig/code/src/main.zig +++ b/starter_templates/zig/code/src/main.zig @@ -5,7 +5,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 this block to pass the first stage + // Uncomment the code below to pass the first stage // const address = try net.Address.resolveIp("127.0.0.1", 4221); // var listener = try address.listen(.{ // .reuse_address = true,