Problem sumint
User tcy
Submission Time 2025-03-12 10:28:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:7:7: error: ‘i’ was not declared in this scope
7 | for (i=0,i<d,i++) {
| ^
sumint.cpp:12:7: error: no match for ‘operator>>’ (operand types are ‘int’ and ‘std::ostream’ {aka ‘std::basic_ostream<char>’})
12 | count>>cout;
| ~~~~~^~~~~~
| | |
| int std::ostream {aka std::basic_ostream<char>}
sumint.cpp:12:7: note: candidate: ‘operator>>(int, int)’ <built-in>
12 | count>>cout;
| ~~~~~^~~~~~
sumint.cpp:12:7: note: no known conversion for argument 2 from ‘std::ostream’ {aka ‘std::basic_ostream<char>’} to ‘int’
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:45,
from sumint.cpp:1:
/usr/include/c++/9/cstddef:140:5: note: candidate: ‘template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(std::byte, _I