0_0_29197298_30521.cpp: In function 'int main()': 0_0_29197298_30521.cpp:20:52: error: 'same' was not declared in this scope int r = min(n - cnt, y) + cnt - max(0, y - same); ^