circuit.cpp:8:11: warning: overflow in conversion from 'long int' to 'int' changes value from '10121101010' to '1531166418' [-Woverflow]
8 | int mod = 10121101010
| ^~~~~~~~~~~
circuit.cpp:10:1: error: expected ',' or ';' before 'int'
10 | int add(int a, int b){
| ^~~
circuit.cpp: In function 'std::pair<int, int> dfs(int)':
circuit.cpp:39:17: error: 'add' was not declared in this scope; did you mean 'std::filesystem::perm_options::add'?
39 | ndp[i] = add(ndp[i], mul(dp[i], itr.first));
| ^~~
| std::filesystem::perm_options::add
In file included from /usr/include/c++/10/filesystem:44,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:129,
from circuit.cpp:1:
/usr/include/c++/10/bits/fs_fwd.h:202:7: note: 'std::filesystem::perm_options::add' declared here
202 | add = 0x2,
| ^~~
circuit.cpp:48:30: error: 'add' was not declared in this scope; did you mean 'std::filesystem::perm_options::add'?
48 | if(i > j) val.first = add(val.first, dp[j]);
| ^~~
| std::filesystem::perm_options::add
In file included from /usr/include/c++/10/filesystem:44,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:129,
from circuit.cpp:1:
/usr/include/c++/10/bits/fs_fwd.h:202:7: note: 'std::filesystem::perm_options::add' declared here
202 | add = 0x2,
| ^~~
circuit.cpp:49:26: error: 'add' was not declared in this scope; did you mean 'std::filesystem::perm_options::add'?
49 | else val.second = add(val.second, dp[j]);
| ^~~
| std::filesystem::perm_options::add
In file included from /usr/include/c++/10/filesystem:44,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:129,
from circuit.cpp:1:
/usr/include/c++/10/bits/fs_fwd.h:202:7: note: 'std::filesystem::perm_options::add' declared here
202 | add = 0x2,
| ^~~