Problem | missingnumber |
---|---|
User | NiXNull |
Submission Time | 2025-02-12 16:07:33 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
missingnumber.cpp: In function ‘int main()’:
missingnumber.cpp:7:49: error: expected primary-expression before ‘/’ token
7 | long long sum = (long long)n * (n + 1) / 2; /
| ^
missingnumber.cpp:8:5: error: expected primary-expression before ‘long’
8 | long long inputSum = 0;
| ^~~~
missingnumber.cpp:13:9: error: ‘inputSum’ was not declared in this scope
13 | inputSum += num;
| ^~~~~~~~
missingnumber.cpp:15:19: error: ‘inputSum’ was not declared in this scope
15 | cout << sum - inputSum << endl;
| ^~~~~~~~