foo.cc: In function 'int main()':
foo.cc:32:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
32 | cin>>num;
| ^~~
| std::cin
In file included from stdc++.h:75:
/nix/store/h5kvfrjmpw792v8jg7nrzfkffmn0iyy8-gcc-12.3.0/include/c++/12.3.0/iostream:60:18: note: 'std::cin' declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
foo.cc:57:34: error: invalid operands of types 'int [1455]' and 'int' to binary 'operator*'
57 | int tm = mods[0] * mods[i][l-1] % m;
| ~~~~~~~ ^ ~~~~~~~~~~~~
| | |
| int [1455] int
foo.cc:71:42: error: invalid operands of types 'int [1455]' and 'int' to binary 'operator*'
71 | int tm = mods[0] * mods[i][j-1] * mods[j][l-1] % m;
| ~~~~~~~ ^ ~~~~~~~~~~~~
| | |
| int [1455] int
[Hydro](https://hydro.ac)提供评测服务