Problem sumint
User Reality1001
Submission Time 2024-02-06 07:45:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In lambda function:
sumint.cpp:8:3: error: expected ‘{’ before ‘for’
8 | for (a < 0; a < d; a++){
| ^~~
sumint.cpp: In function ‘int main()’:
sumint.cpp:7:6: error: no match for ‘operator>>’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘main()::<lambda()>’)
7 | cin >> [d]
In file included from /usr/include/c++/9/iostream:40,
from sumint.cpp:1:
/usr/include/c++/9/istream:120:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_istream<_CharT, _Traits>::__istream_type& (*)(std::basic_istream<_CharT, _Traits>::__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]’ <near match>
120 | operator>>(__istream_type& (*__p