foo.cpp:8:1: error: expected initializer before 'int'
int SIZE, SIZE2;
^
foo.cpp: In function 'void proc()':
foo.cpp:14:15: error: 'SIZE' was not declared in this scope
while (pos < SIZE)
^
foo.cpp:26:2: error: 'SIZE2' was not declared in this scope
SIZE2 = num.size();
^
foo.cpp: In function 'int main()':
foo.cpp:33:2: error: 'SIZE' was not declared in this scope
SIZE = input.size();
^
foo.cpp:35:22: error: 'SIZE2' was not declared in this scope
for (int i = 0; i < SIZE2; ++i)
^
foo.cpp:38:8: error: 'ans' was not declared in this scope
else ans += num[i];
^
foo.cpp:40:10: error: 'ans' was not declared in this scope
cout << ans % MOD << endl;
^