#include <iostream>
#include <string>
using namespace std;
struct Counter{
static int k;
Counter(){ k++; }
~Counter() { k--; }
};
int Counter::k = 0;
#define LOL(x) {string s = #x; Counter c##x; cout<<s.substr(0,1+s.find('['))<<Counter::k<<"]="<<x<<'\n'; }
int main()
{
int arr[15];
for (int i = 0; i < 15; ++i) arr[i] = rand()%100;
for (int i = 0; i < 15; ++i)
{
LOL(arr[i]);
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKc3RydWN0IENvdW50ZXJ7CglzdGF0aWMgaW50IGs7CglDb3VudGVyKCl7IGsrKzsgfQoJfkNvdW50ZXIoKSB7IGstLTsgfQp9OwppbnQgQ291bnRlcjo6ayA9IDA7CiNkZWZpbmUgTE9MKHgpIHtzdHJpbmcgcyA9ICN4OyBDb3VudGVyIGMjI3g7IGNvdXQ8PHMuc3Vic3RyKDAsMStzLmZpbmQoJ1snKSk8PENvdW50ZXI6Oms8PCJdPSI8PHg8PCdcbic7IH0KCmludCBtYWluKCkKewoJaW50IGFyclsxNV07Cglmb3IgKGludCBpID0gMDsgaSA8IDE1OyArK2kpIGFycltpXSA9IHJhbmQoKSUxMDA7CgkKCWZvciAoaW50IGkgPSAwOyBpIDwgMTU7ICsraSkKCXsKCQlMT0woYXJyW2ldKTsKCX0KCXJldHVybiAwOwp9Cgo=