Author
anonymous
almost 5 years ago
Language
C++
Compiler
gcc 10.1.0
Options
Warnings
Don't Use Boost
C++2a
no pedantic
Author
anonymous
almost 5 years ago
$ g++ prog.cc -Wall -Wextra -std=c++2a
prog.cc: In function 'int main()':
prog.cc:5:34: error: invalid operands of types 'double' and 'int' to binary 'operator^'
5 | double e = 2.0000000000 * 10^10;
| ~~~~~~~~~~~~~~~~~^~~
| | |
| | int
| double
prog.cc:6:32: error: invalid operands of types 'double' and 'int' to binary 'operator^'
6 | double r = 2.00000035 * 10^10;
| ~~~~~~~~~~~~~~~^~~
| | |
| | int
| double
prog.cc:7:27: error: invalid operands of types 'double' and 'int' to binary 'operator^'
7 | double c = 6.685 * 10^8;
| ~~~~~~~~~~^~
| | |
| | int
| double
Exit Code:
1