Language
C
Compiler
gcc 8.2.0
Options
Warnings
C89
no pedantic
$ gcc prog.c -Wall -Wextra -std=c89
cp: cannot stat 'INPUT.TXT': No such file or directory
Exit Code:
0
Author
anonymous
over 6 years ago
C
gcc 8.2.0
Author
anonymous
over 6 years ago
$ gcc prog.c -Wall -Wextra -std=c89
prog.c:1:1: warning: return type defaults to 'int' [-Wreturn-type]
main()
^~~~
prog.c: In function 'main':
prog.c:3:3: warning: implicit declaration of function 'system' [-Wimplicit-function-declaration]
system("cp INPUT.TXT OUTPUT.TXT");
^~~~~~
prog.c:4:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
cp: cannot stat 'INPUT.TXT': No such file or directory