Problem ny_mathexam
User dqmnig
Submission Time 2024-07-25 15:15:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ny_mathexam.cpp: In function ‘int main()’:
ny_mathexam.cpp:11:15: error: conflicting declaration ‘long long int number’
11 | long long number;
| ^~~~~~
ny_mathexam.cpp:7:12: note: previous declaration as ‘std::string number’
7 | string number;
| ^~~~~~
ny_mathexam.cpp:15:31: error: no match for ‘operator*’ (operand types are ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} and ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’})
15 | long long result = number * number;
| ~~~~~~ ^ ~~~~~~
| | |
| | basic_string<[...]>
| basic_string<[...]>
In file included from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from ny_mathexam.cpp:3:
/usr/include/c+