1) Bug – Removed
semicolon from a printf statement
Error –
expected ‘;’ before ‘return’
2) Bug – Added
semicolon to main function defination
Error –
expected identifier or ‘(‘ before ‘{‘ token
3) Bug – Removed
closing braces of a function
Error –
expected declaration or statement at end of input
4) Bug - # is
removed
Error –
expected ‘=’, ’-’, ’;’, ‘asm’, ‘_attribute_’
before ‘<’ token
5) Bug – main body
is removed
Error - expected
identifier or ‘(‘ before ‘{‘ token
6) Bug – .h is
removed
Error – no
such file or directory
7) Bug – include
keyword is removed
Error –
invalid preprocessing directive
8) Bug –
parenthesis of printf function are removed
Error –
expected ‘;’ before string constant
9) Bug - parenthesis
of main function are removed
Error - expected
‘=’, ’-’, ’;’, ‘asm’, ‘_attribute_’ before ‘<’
token
10) Bug – stdio is
removed
Error - no
such file or directory
11) Bug - < and >
are removed in header declaration
Error -
#include expects “FILENAME” or <FILENAME>
12) Bug – braces
are removed in main body
Error –
expected declaration specifier before ‘printf’ and ‘return’
13) Bug – print is
used instead of printf
Error – ld
returned 1 exit status
14) Bug - : is used
for termination
Error -
expected ‘;’ before ‘:’ token
15) Bug - “ used
to end header declaration instead of >
Error –
missing terminating > character
16) Bug – no space
between return and 0
Error –
return0 undeclared
17) Bug – . is
removed between stdio and h
Error –
stdioh:no such fie or directory
18) Bug –
parenthesis are used to make a block in the main body
Error – main
declared as a function returning a function
19) Bug - * is used
at the beginning of the header declaration
Error -
expected ‘=’, ’-’, ’;’, ‘asm’, ‘_attribute_’
before ‘<’ token
20) Bug - \ is
written in printf argument
Error –
missing terminating “ character
1. Bug: # removed
Error: expected
‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
‘<’ token
2. Bug: <
removed
Error: invalid
preprocessing directive #includestdio; did you mean #include?
3. Bug: ( removed
Error: expected
‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
‘)’ token
4. Bug: { removed
Error: expected
declaration specifiers before ‘}’ token }
5. Bug: f removed
Error: ld
returned 1 exit status
6. Bug: “ removed
Error: missing
terminating " character printf(helllo world \n");
7. Bug: ; removed
Error: expected
‘;’ before ‘return’ return 0;
8. Bug: . removed
from stdio.h
Error: No such
file or directory #include<stdioh>
9. Bug: main removed
Error: expected
identifier or ‘(’ before ‘)’ token int()
10. Bug: h removed
from stdio
Error: stdio.:
No such file or directory #include<stdio.>
11. Bug: print
removed
Error: ld
returned 1 exit status
12. Bug: include
removed
Error: include
‘<stdio.h>’ or provide a declaration of ‘printf’
13. Bug: >
removed
Error: invalid
preprocessing directive #includestdio; did you mean #include?
14. Bug: ) removed
Error:
expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘)’ token
15. Bug: } removed
Error:
expected declaration specifiers before ‘}’ token }
16. Bug: return
spelling mistake
Error: ‘retrn’
undeclared (first use in this function); did you mean ‘rewind’?
17. Bug: ” removed
Error: missing
terminating " character printf(helllo world \n");
p { margin-bottom: 0.1in; line-height: 120%; }
18. Bug: include
spelling mistake
Error: ‘retrn’
undeclared (first use in this function); did you mean ‘rewind'?
p { margin-bottom: 0.1in; line-height: 120%; }
19. Bug: n removed
from\n
Error: missing
terminating " character printf("hello world\");
20. Bug: main
spelling mistake
Error: ld
returned 1 exit status
1.
Bug:- Removed # of
header file
Error:- hello.c:1:9:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘<’ token
2.
Bug:- Removed ‘{‘
below int main
Error:- hello.c:9:
error: expected ‘{’ at end of input
3.
Bug:- Removed ‘}’
before return 0
Error:- hello.c: In
function ‘main’:
hello.c:6:1: error:
expected declaration or statement at end of input
4.
Bug:- Removed ‘;’ before return 0
Error:- hello.c: In
function ‘main’:
hello.c:6:9: error:
expected ‘;’ before ‘}’ token
return 0
5.
Bug:- Removed “ in
printf
Error:-
hello.c:5:21: error: missing terminating " character
printf(Hello
Mohit\n");
6.
Bug:- Removed ‘(‘
of main
Error:- hello.c:3:9:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘)’ token
int main)
7.
Bug:- Removed ‘)’
of main
Error:- hello.c:4:1:
error: expected declaration specifiers or ‘...’ before ‘{’
token
{
8.
Bug:- Removed ‘;’
after return 0
Error:- hello.c: In
function ‘main’:
hello.c:6:9: error:
expected ‘;’ before ‘}’ token
9. Removed ‘<’ before stdio.h
Bug:-
Error:-
hello.c:1:10: error: #include expects "FILENAME" or
<FILENAME>
#include stdio.h>
10.
Bug:- wrote in
instead of int
Error:- hello.c:3:1:
error: unknown type name ‘in’; did you mean ‘int’?
in main()
11.
Bug:- Inserted ;
after main()
Error:- hello.c:4:1:
error: expected identifier or ‘(’ before ‘{’ token
{
12.
Bug:- Removed . of
stdio.h
Error:- hello.c:4:1:
error: expected identifier or ‘(’ before ‘{’ token
hello.c:1:10: fatal
error: stdioh: No such file or directory
13.
Bug:- Removed space
between int main
Error:- hello.c:3:1:
warning: return type defaults to ‘int’ [-Wimplicit-int]
intmain()
14.
Bug:- Removed ‘u’
from return
Error:- hello.c:6:1:
error: ‘retrn’ undeclared (first use in this function); did you
mean ‘rewind’?
retrn 0;
15.
Bug:- Removed ‘n’
of main
Error:- hello.c:1:2:
error: invalid preprocessing directive #incude; did you mean
#include?
hello.c: In function
‘min’:
16.
Bug:- Added extra {
Error:- hello.c:1:2:
error: invalid preprocessing directive #incude; did you mean
#include?
#incude <stdio.h>
17.
Bug:- inserted /
extra
Error:- hello.c:2:1:
error: expected identifier or ‘(’ before ‘/’ token
/
18.
Bug:- used ##
instead of #
Error:- hello.c:1:1:
error: stray ‘##’ in program
##include <stdio.h>
19.
Bug:- inserted “
extra in printf
Error:-
hello.c:5:23: warning: missing terminating " character
printf("Hello
Mohit\n"");
20.
Bug:- wrote : after
printf() instead of ;
Error:-
hello.c:5:24: error: expected ‘;’ before ‘:’ token
printf("Hello
Mohit\n"):
Error : expected =expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘<’ token
2 Bug
: wrote iclude instead of include
Error : invalid preprocessing directive #iclude
3 Bug
: removed “< >” #includestdio.h
Error : error: invalid preprocessing directive #includestdio;
4
Bug : remove “.” #include<stdidh>
Error : fatal error: stdidh: No such file or directory
5
Bug : add terminator “int main():”
Error : error: expected declaration specifiers before ‘:’ token
6
Bug : wrote “it” instead of ‘int” it main()
Error : error: unknown type name ‘it’
7
Bug : removed main function “{“
Error : expected declaration specifiers before ‘}’ token
8
Bug : remove closed bracket “()” printf"hello\n";
Error : expected ‘;’ before string constant
9 Bug
: Removed (“ “) under printf
error : ‘hello’ undeclared (first use in this function);
10 Bug :
Add teminator “:” printf("hello/n");:
“
Error : error: expected expression before ‘:’ token
11 Bug :
Removed “;” printf("hello/n")
Error : expected ‘;’ before ‘return”
12 Bug :
wrote turn instead of return turn 0;
Error
: expected ‘;’ before numeric constant
13 Bug :
wrote “t0” instead of 0
Error : error: ‘t0’ undeclared (first use in this function)
14 Bug :
add 9 between main ()
Error : error: expected declaration specifiers or ‘...’ before
numeric constant
int main(9)
15 Bug :
Missed space between ‘return and 0’
Error : error: ‘returno’ undeclared (first use in this function)
15.Bug: Removed
‘.’ and added ‘, ’ in include statement
Bug – remove
‘#’ from program,
1 error - expected
‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
‘<’ token
bug – remove
‘\’
2 stray ‘\’ in
program
printf("hello
world"\)
bug: remove ‘
n’
3 expected ‘;’
before ‘return’
printf("hello
world"\)
bug: missing
‘”’ after \
4 missing
terminating " character
printf("hello world\");
bug:remove ‘;’after printf
5 expected
expression before ‘return’
return 0 ;
bug missing
termination sign i.e. ;
6 expected ‘;’
before ‘}’ token
return 0 ;
bug: remove
‘{‘after main
7 expected
declaration or statement at end of input
bug: retn used
instead of return
8 retn’
undeclared (first use in this function); did you mean ‘getw’?
Retn 0;
bug:add ‘else
if’ before printf
9 ‘else’
without a previous ‘if’
else
ifprintf("hello world \n");
bug: remove ‘;’
at the end of int main
10 expected ‘;’
before numeric constant
retur 0;
bug
Adding
‘ ) ’ (right parenthesis) instead of curly brace
11;error:
expected statementbefore ‘)’ token )
Bug: Used colon instead of semicolon
12Error:error:
expected ‘;’ before ‘:’ token
return 0:
bug:remvoe ‘ “’ in hello world world in print
13 hello’ undeclared (first use in this function); did you
mean ‘ftello’? printf(hello world \n");
bug:remove ‘print’
14 expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘<’ token
include<stdio.h>
bug:add extra bracket outside the closing main function ‘}’
15 expected identifier or ‘(’ before ‘return’
return 0;
bug: remove ‘return 0’ from program
16 expected identifier or ‘(’ before ‘}’ token
}
bug: add an extra brecket befor starting the program
17 expected identifier or ‘(’ before ‘{’ token
{include<stdio.h>
bug:add conio .h in program
18 conio.h: No such file or directory
#include<conio.h>
bug: add ‘while loop’ in program
19 expected expression before ‘)’ token
while()
bug:add ‘do while loop’in program
20 expected declaration or statement at end of input
}
bug:add ‘extra\’ in
21 stray ‘\’ in program
enter elements (asjdf\\\\\\\\\\)
ERROR:1
REMOVE:#
BUG:sam.c:1:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’
or ‘__attribute__’ before ‘<’ token
include<stdio.h>
^
ERROR:2
REMOVE:() FROM INT MAIN
BUG:sam.c:3:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’
or ‘__attribute__’ before ‘{’ token
{
^
ERROR:3
REMOVE 0:
BUG:sam.c: In function ‘main’:
sam.c:5:1: warning: ‘return’ with no value, in function
returning non-void
return ;
^~~~~~
sam.c:2:5: note: declared here
int main()
^~~~
ERROR:4
REMOVE . FROM #INCLUDE<STDIO.H>
BUG:sam.c:1:9: fatal error: stdioh: No such file or directory
#include<stdioh>
^~~~~~~~
compilation terminated.
ERROR:5
REMOVE >from stdio.h>
BUG:sam.c:1:17: error: missing terminating > character
#include<stdio.h
^
ERROR:6
REMOVE < FROM #INCLUDE <STDIO.H>
BUG:sam.c:1:2: error: invalid preprocessing directive
#includestdio; did you mean #include?
^~~~~~~~~~~~
include
sam.c: In function ‘main’:
sam.c:4:1: warning: implicit declaration of function ‘printf’
[-Wimplicit-function-declaration]
printf("hello everyone/n");
^~~~~~
sam.c:4:1: warning: incompatible implicit declaration of built-in
function ‘printf’
sam.c:4:1: note: include ‘<stdio.h>’ or provide a
declaration of ‘printf’
ERROR:7
1.ERROR-Removed #
from first statement
BUG-vinay.c:1:8:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘<’ token
include<stdio.h>
^
2.ERROR-Removed <
from first statement
BUG-vinay.c:1:2:
error: invalid preprocessing directive #includestdio; did you mean
#include?
^~~~~~~~~~~~
include
vinay.c: In
function ‘main’:
vinay.c:4:1:
warning: implicit declaration of function ‘printf’
[-Wimplicit-function-declaration]
printf
("helloworld/n");
^~~~~~
vinay.c:4:1:
warning: incompatible implicit declaration of built-in function
‘printf’
vinay.c:4:1:
note: include ‘<stdio.h>’ or provide a declaration of
‘printf’
3.ERROR-Removed
. From stdio.h
BUG-vinay.c:1:9:
fatal error: stdioh: No such file or directory
#include<stdioh>
^~~~~~~~
compilation
terminated.
4.ERROR-Removed >
from <stdio.h>
BUG-vinay.c:1:17:
error: missing terminating > character
#include<stdio.h
5.ERROR-Removed
( after the word main
BUG-vinay.c:2:9:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘)’ token
int main)
6.ERROR-Removed )
after main
BUG-vinay.c:3:1:
error: expected declaration specifiers or ‘...’ before ‘{’
token
{
^
7.ERROR-Removed {
above printf
BUG-vinay.c: In
function ‘main’:
vinay.c:4:1:
error: expected declaration specifiers before ‘printf’
printf
("helloworld/n");
^~~~~~
vinay.c:5:1:
error: expected declaration specifiers before ‘return’
return 0;
^~~~~~
vinay.c:6:1:
error: expected declaration specifiers before ‘}’ token
}
^
vinay.c:6:1:
error: expected ‘{’ at end of input
8.ERROR-Removed (
before helloworld
BUG-vin.c: In
function ‘main’:
vin.c:4:7: error:
expected ‘;’ before string constant
printf"helloworld/n");
^~~~~~~~~~~~~~
vin.c:4:21:
error: expected statement before ‘)’ token
printf"helloworld/n");
^
9.ERROR-Removed )
after helloworld
BUG-vin.c: In
function ‘main’:
vin.c:4:22:
error: expected ‘)’ before ‘;’ token
printf("helloworld/n";
^
vin.c:6:1: error:
expected ‘;’ before ‘}’ token
}
^
10.ERROR-Removed
; after helloworld
BUG-vin.c: In
function ‘main’:
vin.c:5:1: error:
expected ‘;’ before ‘return’
return 0;
^~~~~~
ERROR:7
REMOVE {
BUG:sam.c: In function ‘main’:
sam.c:4:1: error: expected declaration specifiers before ‘printf’
printf("hello everyone/n");
^~~~~~
sam.c:5:1: error: expected declaration specifiers before ‘return’
return 0 ;
^~~~~~
sam.c:6:1: error: expected declaration specifiers before ‘}’
token
}
^
sam.c:6:1: error: expected ‘{’ at end of input
ERROR:8
REMOVE }
BUG:sam.c: In function ‘main’:
sam.c:5:1: error: expected declaration or statement at end of
input
return 0 ;
^~~~~~
ERROR:9
REMOVE: “
BUG:sam.c: In function ‘main’:
sam.c:4:8: error: ‘hello’ undeclared (first use in this
function); did you mean ‘ftello’?
printf(hello everyone/n");
^~~~~
ftello
sam.c:4:8: note: each undeclared identifier is reported only once
for each function it appears in
sam.c:4:14: error: expected ‘)’ before ‘everyone’
printf(hello everyone/n");
^~~~~~~~
sam.c:4:24: warning: missing terminating " character
printf(hello everyone/n");
^
sam.c:4:24: error: missing terminating " character
printf(hello everyone/n");
^~~
sam.c:6:1: error: expected ‘;’ before ‘}’ token
}
^
ERROR:10
REMOVE ; FROM RETURN 0;
BUG:sam.c: In function ‘main’:
sam.c:6:1: error: expected ‘;’ before ‘}’ token
}
^
ERROR:11
REMOVE ; FROM PRINT F
BUG:sam.c: In function ‘main’:
sam.c:5:1: error: expected ‘;’ before ‘return’
return 0;
^~~~~~
ERROR:12
NO SPACE BETWEEN RETURN 0
BUG:sam.c: In function ‘main’:
sam.c:5:1: error: ‘return0’ undeclared (first use in this
function)
return0 ;
^~~~~~~
sam.c:5:1: note: each undeclared identifier is reported only once
for each function it appears in
ERROR:13
REMOVE F FROM PRINT F
BUG:sam.c: In function ‘main’:
sam.c:4:1: warning: implicit declaration of function ‘print’;
did you mean ‘printf’? [-Wimplicit-function-declaration]
print("hello everyone/n");
^~~~~
printf
/tmp/ccR5AnbG.o: In function `main':
sam.c:(.text+0xf): undefined reference to `print'
collect2: error: ld returned 1 exit
ERROR:14
REMOVE .H FROM # INCLUDE STDIO.H
BUG:sam.c:1:9: fatal error: stdio: No such file or directory
#include<stdio>
^~~~~~~
compilation terminated.
ERROR:15
REMOVE INT FROM INT MAIN()
BUG:sam.c:2:2: warning: return type defaults to ‘int’
[-Wimplicit-int]
main()
^~~~
ERROR:16
REMOVE THE BREACKET () FROM (HELLO WORLD)
BUG:sam.c: In function ‘main’:
sam.c:4:7: error: expected ‘;’ before string constant
printf"hello everyone/n";
^~~~~~~~~~~~~~~~~~
ERROR:17
NO SPACE BETWEEN RETURN 0
BUG:sam.c: In function ‘main’:
sam.c:5:1: error: ‘return0’ undeclared (first use in this
function)
return0 ;
^~~~~~~
sam.c:5:1: note: each undeclared identifier is reported only once
for each function it appears in
ERROR:18
REMOVE N” FROM PRINT F (HELLO WORLD/N”);
BUG:sam.c: In function ‘main’:
sam.c:4:8: warning: missing terminating " character
printf("hello everyone/);
^
sam.c:4:8: error: missing terminating " character
printf("hello everyone/);
^~~~~~~~~~~~~~~~~~
sam.c:5:1: error: expected expression before ‘return’
return 0;
^~~~~~
sam.c:6:1: error: expected ‘;’ before ‘}’ token
}
^
ERROR:19
SPACE BETWEEN PRINT F
BUG:sam.c: In function ‘main’:
sam.c:4:1: error: unknown type name ‘print’; did you mean
‘int’?
print f("hello everyone/n");
^~~~~
int
sam.c:4:9: error: expected declaration specifiers or ‘...’
before string constant
print f("hello everyone/n");
^~~~~~~~~~~~~~~~~~
ERROR:20
REMOVE ) FROM INT MAIN()
BUG:sam.c:3:1: error: expected declaration specifiers or ‘...’
before ‘{’ token
{
^
11.ERROR-Removed
0 after return
BUG-vin.c: In
function ‘main’:
vin.c:5:1:
warning: ‘return’ with no value, in function returning non-void
return ;
^~~~~~
vin.c:2:5: note:
declared here
int main()
^~~~
12.ERROR-Removed
; after return 0
BUG-vin.c: In
function ‘main’:
vin.c:6:1: error:
expected ‘;’ before ‘}’ token
}
^
13.ERROR-Removed
last }
BUG-vin.c: In
function ‘main’:
vin.c:5:1: error:
expected declaration or statement at end of input
return 0;
^~~~~~
14.ERROR-spelling
error in include
BUG-vin.c:1:2:
error: invalid preprocessing directive #nclude; did you mean
#include?
#nclude<stdio.h>
^~~~~~
include
vin.c: In
function ‘main’:
vin.c:4:1:
warning: implicit declaration of function ‘printf’
[-Wimplicit-function-declaration]
printf("helloworld/n");
^~~~~~
vin.c:4:1:
warning: incompatible implicit declaration of built-in function
‘printf’
vin.c:4:1: note:
include ‘<stdio.h>’ or provide a declaration of ‘printf’
15.ERROR-NO space
given between int and main
BUG-vin.c:2:1:
warning: return type defaults to ‘int’ [-Wimplicit-int]
intmain()
^~~~~~~
/usr/lib/gcc/x86_64-redhat-linux/7/../../../../lib64/crt1.o:
In function `_start':
(.text+0x20):
undefined reference to `main'
collect2: error:
ld returned 1 exit status
16.ERROR-Removed
f from printf
BUG-vin.c: In
function ‘main’:
vin.c:4:1:
warning: implicit declaration of function ‘print’; did you mean
‘printf’? [-Wimplicit-function-declaration]
print
("helloworld/n");
^~~~~
printf
/tmp/cc1CZWAf.o:
In function `main':
vin.c:(.text+0xf):
undefined reference to `print'
collect2: error:
ld returned 1 exit status
17.ERROR-No space
given between return and 0
BUG-vin.c: In
function ‘main’:
vin.c:5:1: error:
‘return0’ undeclared (first use in this function)
return0;
^~~~~~~
vin.c:5:1: note:
each undeclared identifier is reported only once for each function it
appears in
18.ERROR-Removed
int main() from the program
BUG-vin.c:3:1:
error: expected identifier or ‘(’ before ‘{’ token
{
^
19.ERROR-Removed
both { from the program
BUG-vin.c: In
function ‘main’:
vin.c:4:1: error:
expected declaration specifiers before ‘printf’
printf
("helloworld/n");
^~~~~~
vin.c:5:1: error:
expected declaration specifiers before ‘return’
return 0;
^~~~~~
vin.c:5:1: error:
expected ‘{’ at end of input
20.ERROR-Removed
both the ; in the program
BUG-vin.c: In
function ‘main’:
vin.c:5:1: error:
expected ‘;’ before ‘return’
return 0
^~~~~~
Error:1
Removed .
From stdio.h statement
Bug:
helo.c:2:9: fatal error: stdioh: No such file or directory
#include<stdioh>
^~~~~~~~
compilation
terminated.
Error:2
Removed
#
from the 1st
line
Bug:
helo.c:1:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’
or ‘__attribute__’ before ‘<’ token
include<stdio.h>
Error:3
Removed
space from int main
Bug:
helo.c:2:1: warning: return type defaults to ‘int’
[-Wimplicit-int]
intmain()
^~~~~~~
/usr/lib/gcc/x86_64-redhat-linux/7/../../../../lib64/crt1.o:
In function `_start':
(.text+0x20):
undefined reference to `main'
collect2:
error: ld returned 1 exit status
Error
:4
Removed
{ from the statement
Bug:
helo.c: In function ‘main’:
helo.c:4:1:
error: expected declaration specifiers before ‘printf’
printf("welcome
to new york/n");
^~~~~~
helo.c:5:1:
error: expected declaration specifiers before ‘return’
return
0;
^~~~~~
helo.c:6:1:
error: expected declaration specifiers before ‘}’ token
}
^
helo.c:6:1:
error: expected ‘{’ at end of input
Error:5
Put
space in prinf statement
Bug:
helo.c: In function ‘main’:
helo.c:3:1:
error: expected declaration specifiers before ‘}’ token
}
^
helo.c:5:1:
error: unknown type name ‘print’; did you mean ‘int’?
print f("welcome to
new york/n");
^~~~~
int
helo.c:5:9:
error: expected declaration specifiers or ‘...’ before string
constant
print f("welcome to
new york/n");
^~~~~~~~~~~~~~~~~~~~~~~
helo.c:6:1:
error: expected declaration specifiers before ‘return’
return 0;
^~~~~~
helo.c:7:1:
error: expected declaration specifiers before ‘}’ token
}
^
helo.c:7:1:
error: expected ‘{’ at end of input
Error:6
Removed
; from the statement
Bug:
amit.c: In function ‘main’:
amit.c:6:1:
error: expected ‘;’ before ‘return’
return
0;
^~~~~~
Error 5:-
removed braces from H
p { margin-bottom: 0.25cm; line-height: 120%;
Hello.c: In function ‘main’:
Hello.c:6:7: error: expected ‘;’ before string constant
printf"Hello\n"
p { margin-bottom: 0.25cm; line-height: 120%; }
Error
6:- printf("Hello\n)":
Hello.c: In function ‘main’:
Hello.c:6:18: error: expected ‘)’ before ‘;’ token
printf("Hello\n)";
^
Hello.c:9:1: error: expected ‘;’ before ‘}’ token
p { margin-bottom: 0.25cm; line-height: 120%; }
Error 7:- int
main…... (braces missing)
Hello.c:3:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘{’ token
{
^
p { margin-bottom: 0.25cm; line-height: 120%; }
Error 8:- ……..main()
(int is missing)
Hello.c:3:2:
warning: return type defaults to ‘int’ [-Wimplicit-int]
main()
Error 9:- Semicolon removed
#include
<stdio.h>
int
main()
{
printf("hello\n")
return 0
}
Hello.c: In function
‘main’:
Hello.c:5:3: error:
expected ‘;’ before ‘return’
return 0
p { margin-bottom: 0.25cm; line-height: 120%; }
p { margin-bottom: 0.25cm; line-height: 120%; }
p { margin-bottom: 0.25cm; line-height: 120%; }
Error 10:-
#include<stdioh> ( dot missing before h)
Hello.c:1:9: fatal error: stdioh: No such file or directory
#include<stdioh>
^~~~~~~~
compilation terminated.
Error
11:- #includestdio.h (bracses <> are missing)
Hello.c:1:2: error: invalid preprocessing directive #includestdio;
did you mean #include?
^~~~~~~~~~~~
include
Hello.c: In function ‘main’:
Hello.c:5:1: warning: implicit declaration of function ‘printf’
[-Wimplicit-function-declaration]
printf("Hello\n");
^~~~~~
Hello.c:5:1: warning: incompatible implicit declaration of built-in
function ‘printf’
Hello.c:5:1: note: include ‘<stdio.h>’ or provide a
declaration of ‘printf’
Error
12:- return ; (zero removed)
Hello.c: In function ‘main’:
Hello.c:6:3: warning: ‘return’ with no value, in function
returning non-void
return ;
^~~~~~
Hello.c:2:5: note: declared here
int main()
^~~
p { margin-bottom: 0.25cm; line-height: 120%; }
p { margin-bottom: 0.25cm; line-height: 120%; }
p { margin-bottom: 0.25cm; line-height: 120%; }
Error 13:- f("Hello\n"); (print is
removed from printf)
Hello.c: In function ‘main’:
Hello.c:5:1: warning: implicit declaration of function ‘f’
[-Wimplicit-function-declaration]
f("Hello\n");
^
/tmp/ccqX7hUH.o: In function `main':
Hello.c:(.text+0xf): undefined reference to `f'
collect2: error: ld returned 1 exit status
Error
14 :- printf(Hello\n); (double qoutes removed)
Hello.c: In function ‘main’:
Hello.c:5:13: error: stray ‘\’ in program
printf(Hello\n);
^
Hello.c:5:8: error: ‘Hello’ undeclared (first use in this
function); did you mean ‘ftello’?
printf(Hello\n);
^~~~~
ftello
Hello.c:5:8: note: each undeclared identifier is reported only once
for each function it appears in
Hello.c:5:14: error: expected ‘)’ before ‘n’
printf(Hello\n)
Error 15:- ( int
main removed )
#include<stdio.h>)
{
printf("Hello\n");
return 0 ;
}
Hello.c:2:1: error: expected identifier or ‘(’ before ‘{’
token
Error 16:-
#include (header file <stdio.h> removed)
Hello.c:1:9: error: #include expects "FILENAME" or
<FILENAME>
#include
^
Hello.c: In function ‘main’:
Hello.c:5:1: warning: implicit declaration of function ‘printf’
[-Wimplicit-function-declaration]
printf("Hello\n");
^~~~~~
Hello.c:5:1: warning: incompatible implicit declaration of built-in
function ‘printf’
Hello.c:5:1: note: include ‘<stdio.h>’ or provide a
declaration of ‘printf’
p { margin-bottom: 0.25cm; line-height: 120%; }
p { margin-bottom: 0.25cm; line-height: 120%; }
p { margin-bottom: 0.25cm; line-height: 120%; }
p { margin-bottom: 0.25cm; line-height: 120%; }
p { margin-bottom: 0.25cm; line-height: 120%; }
Error 17:-
(#include <stdio.h> is removed)
int main()
{
printf("Hello\n");
return 0 ;
}
Hello.c: In function ‘main’:
Hello.c:5:1: warning: implicit declaration of function ‘printf’
[-Wimplicit-function-declaration]
printf("Hello\n");
^~~~~~
Hello.c:5:1: warning: incompatible implicit declaration of built-in
function ‘printf’
Hello.c:5:1: note: include ‘<stdio.h>’ or provide a
declaration of ‘printf’
Error 18:- (curly
braces removed)
#include<stdio.h>
int main()
printf("hello\n");
return 0;
Hello.c: In function ‘main’:
Hello.c:4:1: error: expected declaration specifiers before ‘printf’
printf("hello\n");
^~~~~~
Hello.c:5:2: error: expected declaration specifiers before ‘return’
return 0;
^~~~~~
Hello.c:5:2: error: expected ‘{’ at end of input
p { margin-bottom: 0.25cm; line-height: 120%; }
It looks like you're new here. If you want to get involved, click one of these buttons!