Advertisement
Guest User

Untitled

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