Problem sumint
User KucingGarong
Submission Time 2025-02-01 11:41:45
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:6:6: error: no match for ‘operator<<’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘long long int’)
6 | cin << a;
| ~~~ ^~ ~
| | |
| | long long int
| std::istream {aka std::basic_istream<char>}
sumint.cpp:6:6: note: candidate: ‘operator<<(int, long long int)’ <built-in>
6 | cin << a;
| ~~~~^~~~
sumint.cpp:6:6: