online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
# Title: "The Last Train" # Characters: characters = ["Anna", "Tom", "Maya", "Jake", "Lisa"] def print_scene(description, dialogue): print(description) for line in dialogue: print(line) print("\n") # Opening Scene print_scene( "Opening Scene: The film opens with the last train of the night leaving the station. The carriage is nearly empty, with only five passengers.", [ "Narrator: The train's lights flicker as it moves through the dark night.", "Anna is sketching in her notebook.", "Tom is on the phone, discussing the potential career change.", "Maya looks exhausted, staring out the window.", "Jake is tuning his guitar, humming softly.", "Lisa is quietly observing the others, with a hint of tension in her demeanor." ] ) # Character Introductions print_scene( "Character Introductions: Brief interactions reveal snippets about each character.", [ "Jake (to Anna): Nice sketches. You an artist?", "Anna: Yeah, just had my first gallery exhibition.", "Tom (on the phone): I know, it’s a big step, but I need a change.", "Maya (to herself): Just a few more hours, then home.", "Lisa observes everyone quietly, holding a small bag tightly." ] ) # Inciting Incident print_scene( "Inciting Incident: The train suddenly stops in the middle of nowhere. An announcement informs the passengers of an unexpected delay.", [ "Announcement: We apologize for the inconvenience. We are experiencing a delay.", "Anna: What now?", "Tom: This is just perfect." ] ) # Rising Tension print_scene( "Rising Tension: As the delay extends, the characters start interacting more.", [ "Anna (to Jake): Do you play professionally?", "Jake: Trying to. It’s tough out there.", "Tom (to Maya): Long day?", "Maya: You could say that." ] ) # Revealing Secrets print_scene( "Revealing Secrets: The interactions deepen, revealing more about each character.", [ "Anna: I’m scared my art won’t sell.", "Jake: Keep at it. I’ve been at this for years. It’s a grind.", "Tom: I’m thinking of quitting my job. Life’s too short to be miserable.", "Maya: Lost a patient today. Hard to shake it off.", "Lisa: I’m... I’m running away from someone." ] ) # Climax print_scene( "Climax: The lights flicker and the tension peaks. The passengers band together, sharing encouragement and advice.", [ "Anna: We’ll get through this.", "Tom: We’re stronger than we think.", "Maya: Thanks, everyone.", "Jake: Let’s stick together.", "Lisa: Thank you... all of you." ] ) # Resolution print_scene( "Resolution: The train resumes its journey. Each character, having shared their burdens, feels lighter and more connected.", [ "Narrator: The train starts moving again.", "Anna: Maybe we should keep in touch?", "Tom: I’d like that.", "Maya: Me too.", "Jake: Here’s my number.", "Lisa: I’ll be okay. Thank you." ] ) # Closing Scene print_scene( "Closing Scene: The film ends with the train pulling away, and the characters walking into the night, each with a renewed sense of hope.", [ "Narrator: As the train pulls away, the characters step into the night, hopeful for the future." ] )

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue