fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main() {
  4. const int height = 10, width = 10;
  5. int a[height] = {1};
  6. int b[width] = {2};
  7. for(int y=0; y<height; ++y)
  8. {
  9. for(int x=0; x<width; ++x){
  10. b[y,x] = a[y,x];
  11. int i=b[y,x];
  12. cout<< i<<"\n";
  13. }
  14. }
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 2724KB
stdin
Standard input is empty
stdout
1
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0