1 2 3 4 5 6 7 8 9 10 11 12 13 | #include <iostream> using namespace std; int main() { int i = 0, *a = &i; cout << "original -> " << i << endl; a[i] = i + 1; cout << "changed -> " << i << endl; } |
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CgogICAgaW50IGkgPSAwLCAqYSA9ICZpOwogICAgCiAgICBjb3V0IDw8ICJvcmlnaW5hbCAtPiAiIDw8IGkgPDwgZW5kbDsKICAgIGFbaV0gPSBpICsgMTsgCiAgICAKICAgIGNvdXQgPDwgImNoYW5nZWQgIC0+ICIgPDwgaSA8PCBlbmRsOwp9Cg==
-
upload with new input
-
result: Success time: 0.01s memory: 2724 kB returned value: 0
original -> 0 changed -> 1


