array_init.cvc 493 B

12345678910111213141516171819202122232425262728293031
  1. extern void printInt(int i);
  2. extern void printNewlines(int i);
  3. export int main() {
  4. int[2,3] a = [[1,2,3], [4,5,6]];
  5. int[2,3] b = 7;
  6. for(int i=0,2) {
  7. for(int j=0,3) {
  8. printInt(a[i,j]);
  9. printNewlines(1);
  10. }
  11. }
  12. printNewlines(1);
  13. for(int i=0,2) {
  14. for(int j=0,3) {
  15. printInt(b[i,j]);
  16. printNewlines(1);
  17. }
  18. }
  19. return 0;
  20. }
  21. void foo() {
  22. void bar() {
  23. int[4, 5] arr = 1;
  24. }
  25. }