Problem sumint
User 2Princes1Lance
Submission Time 2023-11-22 14:39:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:10:13: error: invalid conversion from ‘const char*’ to ‘std::streamsize’ {aka ‘long int’} [-fpermissive]
10 | cin.ignore("\n");
| ^~~~
| |
| const char*
In file included from /usr/include/c++/9/iostream:40,
from sumint.cpp:1:
/usr/include/c++/9/istream:454:25: note: initializing argument 1 of ‘std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::ignore(std::streamsize) [with _CharT = char; _Traits = std::char_traits<char>; std::streamsize = long int]’
454 | ignore(streamsize __n);
| ~~~~~~~~~~~^~~