| Problem | sumint |
|---|---|
| User | SkyHelix |
| Submission Time | 2026-02-06 16:20:53 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
sumint.cpp: In function ‘int main()’:
sumint.cpp:9:11: error: ‘STDIN_FILENO’ was not declared in this scope
9 | if (read(STDIN_FILENO, number_of_numbers, sizeof(number_of_numbers)) < 0) {
| ^~~~~~~~~~~~
sumint.cpp:9:6: error: ‘read’ was not declared in this scope; did you mean ‘fread’?
9 | if (read(STDIN_FILENO, number_of_numbers, sizeof(number_of_numbers)) < 0) {
| ^~~~
| fread
sumint.cpp:14:52: error: too few arguments to function ‘long int strtol(const char*, char**, int)’
14 | 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,
| ^~~~~~
sumi