Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ g++ k.c
- k.c:2:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
- 2 | main ()
- | ^~~~
- k.c: In function ‘int main()’:
- k.c:4:17: error: initializer-string for ‘char [6]’ is too long [-fpermissive]
- 4 | char x[6] = "12345\0";
- | ^~~~~~~~~
- k.c:5:17: error: initializer-string for ‘char [6]’ is too long [-fpermissive]
- 5 | char y[6] = "67890\0";
- |
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement