Problem | add1 |
---|---|
User | Soysauce |
Submission Time | 2024-08-23 21:15:58 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
add1.cpp: In function ‘int main()’:
add1.cpp:48:10: error: ‘complex’ is not a member of ‘std’
48 | std::complex<double> i(0, 1);
| ^~~~~~~
add1.cpp:5:1: note: ‘std::complex’ is defined in header ‘<complex>’; did you forget to ‘#include <complex>’?
4 | #include <cmath>
+++ |+#include <complex>
5 |
add1.cpp:48:18: error: expected primary-expression before ‘double’
48 | std::complex<double> i(0, 1);
| ^~~~~~