Skip to content

circle_calculations.cpp gives "no input file" error after compilingΒ #4715

@hafsa504

Description

@hafsa504

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues, especially the pinned issues.

Exception report

## πŸ“Œ Exception Summary
When I try to run my C++ file (`circle_calculations.cpp`), it gives an error saying "no input file" or doesn't take input as expected.

## πŸ’» Steps to Reproduce
1. Open VS Code terminal
2. Compile using: `g++ circle_calculations.cpp -o circle_calculations.exe`
3. Run the program using: `./circle_calculations.exe`
4. It shows an error: `"no input file"` or nothing happens

## βœ… Expected Behavior
The program should prompt me to enter the radius and then display:
- Diameter
- Circumference
- Area

## ❌ Actual Behavior
Instead of asking for input, it shows an error like "no input file" or crashes.

## 🧠 My System Details
- OS: Windows 10
- Compiler: g++
- IDE: VS Code
- File Name: `circle_calculations.cpp`

Screenshot

Image

Environment data

- **Operating System**: Windows 10
- **IDE or Editor**: Visual Studio Code (VS Code)
- **Compiler**: g++ (MinGW)
- **Programming Language**: C++
- **File Name**: circle_calculations.cpp
- **Run Command**: g++ circle_calculations.cpp -o circle_calculations.exe
- **Execution Command**: ./circle_calculations.exe

Steps to reproduce

  1. Open Visual Studio Code
  2. Create a new file named circle_calculations.cpp
  3. Paste the C++ code inside the file
  4. Save the file
  5. Open the terminal in VS Code
  6. Run the compile command:

Expected behavior

The program should ask for radius input and show diameter, area, and circumference.

Actual behavior

It gives: no input file

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs-Triage πŸ”It's a new issue that core contributor team needs to triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions