Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do you only print out your error as like 'a' 'k' on console instead of file? #2

Open
LIYuHangML opened this issue Dec 8, 2021 · 3 comments

Comments

@LIYuHangML
Copy link

No description provided.

@LIYuHangML
Copy link
Author

honestly i didn't find what these 'a' 'k' mean precisely..

@aptx1231
Copy link
Owner

aptx1231 commented Dec 8, 2021

I guess you said a and k should be part of error handling. These letters represent certain types of errors required by my course.

Illegal symbol or not lexical——a

Name redefinition——b

Undefined name——c

The number of function parameters does not match——d

Function parameter types do not match——e

Invalid type in condition judgment——f

A function with no return value has a mismatched return statement——g

A function with a return value lacks a return statement or has a mismatched return statement——h

The subscript of an array element can only be an integer expression——i

Cannot change the value of a constant——j

Should be a semicolon——k

Should be the right parenthesis’)’——l

Should be the right bracket’]’——m

do-while should be the lack of while in the statement——n

Constant definition = Only integer or character constants can be followed——o

@aptx1231
Copy link
Owner

aptx1231 commented Dec 8, 2021

Snipaste_2021-12-09_01-01-18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants