Problem | sumint |
---|---|
User | totallynotme |
Submission Time | 2025-02-21 15:22:28 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumint.cpp: In function ‘int main()’:
sumint.cpp:7:10: error: expected ‘;’ before ‘int’
7 | cin >> d
| ^
| ;
8 | int size = d;
| ~~~
sumint.cpp:9:16: error: could not convert ‘std::size’ from ‘<unresolved overloaded function type>’ to ‘long unsigned int’
9 | int array[size];
| ^
sumint.cpp:9:6: error: size of array ‘array’ has non-integral type ‘<unresolved overloaded function type>’
9 | int array[size];
| ^~~~~
sumint.cpp:11:20: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator<’
11 | for (int i = 0; i < size; i++) {
| ~~^~~~~~
sumint.cpp:15:20: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator<’
15 | for (int j = 0; j < size; j++) {
| ~~^~