Problem | sumint |
---|---|
User | NotTYR |
Submission Time | 2023-02-08 21:10:15 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumint.cpp: In function ‘int main()’:
sumint.cpp:9:7: error: ‘i’ was not declared in this scope
9 | for (i=0;i<genitals;i++){
| ^
sumint.cpp:10:14: error: no match for ‘operator!=’ (operand types are ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} and ‘int’)
10 | if(genitals!=0){genitals=0;}
| ~~~~~~~~^~~
| | |
| | int
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/ios:38,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from sumint.cpp:1:
/usr/include/c++/9/bits/postypes.h:227:5: note: candidate: ‘template<class _StateT> bool std::operator!=(const std::fpos<_StateT>&, const std::fpos<_StateT>&)’
227 | operator!=(const fpos<_StateT>& __