The errors are in the picture please find the the errors and show how to fix them please

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

The errors are in the picture please find the the errors and show how to fix them please

#include<stdio.h>
int main(void); {
    // Local Declarations:

    int, a;

    double, float, b;

    char, c, d;

    //Statements:

    printf("The_end_of_the_program");

    return 0;

}  //main:

int main(void)
{
    return 0;
}

**Error List Overview**

This error list is generated from a programming environment and displays three errors related to a coding project named "Week10". Below is a transcription and explanation of the error messages shown:

1. **Error Code: E0169**
   - **Description:** Expected a declaration.
   - **Project:** Week10
   - **File:** Week10.c
   - **Line:** 2
   - This error suggests that the compiler expected a declaration (such as a variable or function) at line 2 in the file `Week10.c`.

2. **Error Code: C2449**
   - **Description:** Found '{' at file scope (missing function header?)
   - **Project:** Week10
   - **File:** Week10.c
   - **Line:** 2
   - This error indicates that an opening brace `{` was found at the file level without a preceding function header, which usually results from missing or incorrect syntax for function definitions.

3. **Error Code: C2059**
   - **Description:** Syntax error: '}'
   - **Project:** Week10
   - **File:** Week10.c
   - **Line:** 17
   - This error denotes a syntax error involving a closing brace `}` at line 17, which could be due to an unmatched or misplaced closing brace in the code.

Each error is associated with a specific line number where the issue is detected, assisting developers in debugging their code by pinpointing potential problems. Proper code syntax and structure, such as ensuring function headers and balanced braces, are necessary to resolve these errors.
Transcribed Image Text:**Error List Overview** This error list is generated from a programming environment and displays three errors related to a coding project named "Week10". Below is a transcription and explanation of the error messages shown: 1. **Error Code: E0169** - **Description:** Expected a declaration. - **Project:** Week10 - **File:** Week10.c - **Line:** 2 - This error suggests that the compiler expected a declaration (such as a variable or function) at line 2 in the file `Week10.c`. 2. **Error Code: C2449** - **Description:** Found '{' at file scope (missing function header?) - **Project:** Week10 - **File:** Week10.c - **Line:** 2 - This error indicates that an opening brace `{` was found at the file level without a preceding function header, which usually results from missing or incorrect syntax for function definitions. 3. **Error Code: C2059** - **Description:** Syntax error: '}' - **Project:** Week10 - **File:** Week10.c - **Line:** 17 - This error denotes a syntax error involving a closing brace `}` at line 17, which could be due to an unmatched or misplaced closing brace in the code. Each error is associated with a specific line number where the issue is detected, assisting developers in debugging their code by pinpointing potential problems. Proper code syntax and structure, such as ensuring function headers and balanced braces, are necessary to resolve these errors.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education