#include <iostream>
#include <string>
using namespace std;
template<typename T>
void printArray(T *arr,int size) {
for (int i=0;i<size;i++) {
cout<<arr[i]<<" ";
}
cout<<endl;
}
int main() {
int arr[]={1,2,3,4};
printArray(arr,4);
double arrd[]={3.08,4.72,2.00,3.21,10.90};
printArray(arrd,5);
char letter[]={'2','D','w'};
printArray(letter,3);
string text[]={"hello world","kitten"};
printArray(text,2);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwp0ZW1wbGF0ZTx0eXBlbmFtZSBUPgp2b2lkIHByaW50QXJyYXkoVCAqYXJyLGludCBzaXplKSB7CiAgICBmb3IgKGludCBpPTA7aTxzaXplO2krKykgewogICAgICAgIGNvdXQ8PGFycltpXTw8IiAiOwogICAgfQogICAgY291dDw8ZW5kbDsKfQppbnQgbWFpbigpIHsKCWludCBhcnJbXT17MSwyLDMsNH07CiAgICBwcmludEFycmF5KGFyciw0KTsKICAgIGRvdWJsZSBhcnJkW109ezMuMDgsNC43MiwyLjAwLDMuMjEsMTAuOTB9OwogICAgcHJpbnRBcnJheShhcnJkLDUpOwogICAgY2hhciBsZXR0ZXJbXT17JzInLCdEJywndyd9OwogICAgcHJpbnRBcnJheShsZXR0ZXIsMyk7CiAgICBzdHJpbmcgdGV4dFtdPXsiaGVsbG8gd29ybGQiLCJraXR0ZW4ifTsKICAgIHByaW50QXJyYXkodGV4dCwyKTsKCXJldHVybiAwOwp9