1_array.cvc 500 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. extern void printInt(int i);
  2. extern void printSpaces( int num);
  3. extern void printNewlines( int num);
  4. export int main()
  5. {
  6. int a;
  7. int b;
  8. int [5,3]t =1;
  9. int [5,3]c =[[1,2,300],
  10. 1,
  11. 3,
  12. [3,4],
  13. 6
  14. ];
  15. c[4-2,2] = 2;
  16. for(int q=0,5)
  17. {
  18. for(int p=0,3)
  19. { printInt(c[q,p]);
  20. printSpaces(3);
  21. }
  22. printNewlines(1);
  23. }
  24. printNewlines(3);
  25. for(int q=0,5)
  26. {
  27. for(int p=0,3)
  28. { printInt(t[q,p]);
  29. printSpaces(3);
  30. }
  31. printNewlines(1);
  32. }
  33. return 1;
  34. }