sysy-data/hidden_functional_c/sy/25_scope3.sy

44 lines
1.1 KiB
Plaintext
Raw Normal View History

2024-06-02 22:04:54 +08:00
#include "sylib.h"
2024-04-14 22:20:29 +08:00
int main()
{ /* scope test */
putch(97);
putch(10);
int a = 1, putch = 0;
{
a = a + 2;
int b = a + 3;
b = b + 4;
putch = putch + a + b;
{
b = b + 5;
int main = b + 6;
a = a + main;
putch = putch + a + b + main;
{
b = b + a;
int a = main + 7;
a = a + 8;
putch = putch + a + b + main;
{
b = b + a;
int b = main + 9;
a = a + 10;
const int a = 11;
b = b + 12;
putch = putch + a + b + main;
{
main = main + b;
int main = b + 13;
main = main + a;
putch = putch + a + b + main;
}
putch = putch - main;
}
putch = putch - b;
}
putch = putch - a;
}
}
return putch % 77;
}