Problem sumint
User KucingGarong
Submission Time 2025-02-01 11:41:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:5:8: error: expected identifier before numeric constant
5 | array[100000];
| ^~~~~~
sumint.cpp:5:8: error: expected ‘]’ before numeric constant
5 | array[100000];
| ^~~~~~
| ]
sumint.cpp:5:7: error: empty structured binding declaration
5 | array[100000];
| ^
sumint.cpp:5:15: error: expected initializer before ‘;’ token
5 | array[100000];
| ^
sumint.cpp:8:7: error: no match for ‘operator<<’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘long long int’)
8 | cin << c;
| ~~~ ^~ ~
| | |
| | long long int
| std::istream {aka std::basic_istream<char>}
sumint.cpp:8:7: note: candidate: ‘operator<<(int, long long int)’ <built-in>
8 | cin << c;
| ~~~~^~~~
sumint.cp