Problem sumint
User SkyHelix
Submission Time 2026-02-06 16:22:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:11:6: error: ‘read’ was not declared in this scope; did you mean ‘fread’?
11 | if (read(STDIN_FILENO, number_of_numbers, sizeof(number_of_numbers)) < 0) {
| ^~~~
| fread
sumint.cpp:37:17: error: expected ‘;’ before ‘buf_idx’
37 | sum += number
| ^
| ;
38 | buf_idx = 0;
| ~~~~~~~