relativnost.cpp:32:1: error: 'si' does not name a type; did you mean 'sin'?
si t[4 * N][21];
^~
sin
relativnost.cpp:34:1: error: 'si' does not name a type; did you mean 'sin'?
si i, n, c, id;
^~
sin
relativnost.cpp:36:1: error: 'si' does not name a type; did you mean 'sin'?
si sum(si a, si b) {return (int(a) + int(b)) % M;}
^~
sin
relativnost.cpp:37:1: error: 'si' does not name a type; did you mean 'sin'?
si mult(si a, si b) {return (int(a) * int(b)) % M;}
^~
sin
relativnost.cpp:39:18: error: 'si' has not been declared
void calc(int v, si lv, si rv)
^~
relativnost.cpp:39:25: error: 'si' has not been declared
void calc(int v, si lv, si rv)
^~
relativnost.cpp: In function 'void calc(int, int, int)':
relativnost.cpp:41:10: error: 'si' was not declared in this scope
for (si cnt = 0; cnt <= c; cnt++) t[v][cnt] = 0;
^~
relativnost.cpp:41:10: note: suggested alternative: 'sin'
for (si cnt = 0; cnt <= c; cnt++) t[v][cnt] = 0;
^~
sin
relativnost.cpp:41:22: error: 'cnt' was not declared in this scope
for (si cnt = 0; cnt <= c; cnt++) t[v][cnt] = 0;
^~~
relativnost.cpp:41:22: note: suggested alternative: 'int'
for (si cnt = 0; cnt <= c; cnt++) t[v][cnt] = 0;
^~~
int
relativnost.cpp:41:29: error: 'c' was not declared in this scope
for (si cnt = 0; cnt <= c; cnt++) t[v][cnt] = 0;
^
relativnost.cpp:41:39: error: 't' was not declared in this scope
for (si cnt = 0; cnt <= c; cnt++) t[v][cnt] = 0;
^
relativnost.cpp:43:10: error: 'si' was not declared in this scope
for (si left = 0; left <= c; left++)
^~
relativnost.cpp:43:10: note: suggested alternative: 'sin'
for (si left = 0; left <= c; left++)
^~
sin
relativnost.cpp:43:31: error: 'c' was not declared in this scope
for (si left = 0; left <= c; left++)
^
relativnost.cpp:43:38: warning: ISO C++ forbids incrementing a pointer of type 'std::ios_base& (*)(std::ios_base&)' [-Wpointer-arith]
for (si left = 0; left <= c; left++)
^~
relativnost.cpp:43:38: error: lvalue required as increment operand
relativnost.cpp:44:15: error: expected ';' before 'right'
for (si right = 0; right <= c; right++)
^~~~~
relativnost.cpp:44:43: warning: ISO C++ forbids incrementing a pointer of type 'std::ios_base& (*)(std::ios_base&)' [-Wpointer-arith]
for (si right = 0; right <= c; right++)
^~
relativnost.cpp:44:43: error: lvalue required as increment operand
relativnost.cpp:46:12: error: expected ';' before 'new_cnt'
si new_cnt = min(int(c), int(left + right));
^~~~~~~
relativnost.cpp:48:9: error: 't' was not declared in this scope
t[v][new_cnt] = sum(t[v][new_cnt], mult(t[lv][left], t[rv][right]));
^
relativnost.cpp:48:14: error: 'new_cnt' was not declared in this scope
t[v][new_cnt] = sum(t[v][new_cnt], mult(t[lv][left], t[rv][right]));
^~~~~~~
relativnost.cpp:48:14: note: suggested alternative: 'new_b'
t[v][new_cnt] = sum(t[v][new_cnt], mult(t[lv][left], t[rv][right]));
^~~~~~~
new_b
relativnost.cpp:48:44: error: 'mult' was not declared in this scope
t[v][new_cnt] = sum(t[v][new_cnt], mult(t[lv][left], t[rv][right]));
^~~~
relativnost.cpp:48:44: note: suggested alternative: 'out'
t[v][new_cnt] = sum(t[v][new_cnt], mult(t[lv][left], t[rv][right]));
^~~~
out
relativnost.cpp:48:25: error: 'sum' was not declared in this scope
t[v][new_cnt] = sum(t[v][new_cnt], mult(t[lv][left], t[rv][right]));
^~~
relativnost.cpp: At global scope:
relativnost.cpp:52:19: error: 'si' has not been declared
void build(int v, si l, si r)
^~
relativnost.cpp:52:25: error: 'si' has not been declared
void build(int v, si l, si r)
^~
relativnost.cpp: In function 'void build(int, int, int)':
relativnost.cpp:54:18: error: 't' was not declared in this scope
if (l == r) {t[v][0] = b[l]; t[v][1] = a[l]; return;}
^
relativnost.cpp: At global scope:
relativnost.cpp:64:17: error: 'si' has not been declared
void upd(int v, si l, si r, si ps)
^~
relativnost.cpp:64:23: error: 'si' has not been declared
void upd(int v, si l, si r, si ps)
^~
relativnost.cpp:64:29: error: 'si' has not been declared
void upd(int v, si l, si r, si ps)
^~
relativnost.cpp: In function 'void upd(int, int, int, int)':
relativnost.cpp:66:18: error: 't' was not declared in this scope
if (l == r) {t[v][0] = b[l]; t[v][1] = a[l]; return;}
^
relativnost.cpp: In function 'int main()':
relativnost.cpp:89:12: error: 'n' was not declared in this scope
cin >> n >> c;
^
relativnost.cpp:89:17: error: 'c' was not declared in this scope
cin >> n >> c;
^
relativnost.cpp:90:10: error: 'i' was not declared in this scope
for (i = 1; i <= n; i++) cin >> a[i] >> b[i];
^
relativnost.cpp:97:16: error: 'id' was not declared in this scope
cin >> id >> new_a >> new_b;
^~
relativnost.cpp:97:16: note: suggested alternative: 'ld'
cin >> id >> new_a >> new_b;
^~
ld
relativnost.cpp:104:17: error: 't' was not declared in this scope
cout << t[1][c] << el;
^