| Problem | sumint |
|---|---|
| User | SkyHelix |
| Submission Time | 2026-02-06 16:21:26 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
sumint.cpp: In function ‘int main()’:
sumint.cpp:10:11: error: ‘STDIN_FILENO’ was not declared in this scope
10 | if (read(STDIN_FILENO, number_of_numbers, sizeof(number_of_numbers)) < 0) {
| ^~~~~~~~~~~~
sumint.cpp:10:6: error: ‘read’ was not declared in this scope; did you mean ‘fread’?
10 | if (read(STDIN_FILENO, number_of_numbers, sizeof(number_of_numbers)) < 0) {
| ^~~~
| fread
sumint.cpp:15:52: error: too few arguments to function ‘long int strtol(const char*, char**, int)’
15 | const long number_count = strtol(number_of_numbers);
| ^
In file included from /usr/include/c++/9/cstdlib:75,
from /usr/include/c++/9/stdlib.h:36,
from sumint.cpp:2:
/usr/include/stdlib.h:176:17: note: declared here
176 | extern long int strtol (const char *__restrict __nptr,
| ^~~~~~
su