Problem | lcm |
---|---|
User | gordonlu |
Submission Time | 2023-11-06 19:25:02 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lcm.cpp: In function ‘int main()’:
lcm.cpp:10:2: error: ‘vector’ was not declared in this scope
10 | vector<int> lcms (n);
| ^~~~~~
lcm.cpp:3:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
2 | #include <numeric>
+++ |+#include <vector>
3 |
lcm.cpp:10:9: error: expected primary-expression before ‘int’
10 | vector<int> lcms (n);
| ^~~
lcm.cpp:14:3: error: ‘lcms’ was not declared in this scope
14 | lcms[i] == __lcm(a, b);
| ^~~~
lcm.cpp:14:14: error: ‘__lcm’ was not declared in this scope; did you mean ‘std::__detail::__lcm’?
14 | lcms[i] == __lcm(a, b);
| ^~~~~
| std::__detail::__lcm
In file included from lcm.cpp:2:
/usr/include/c++/9/numeric:114:5: note: ‘std::__detail::__lcm’ declared here
114 | __lcm(_Tp __m, _Tp __n)
| ^~~~~
l