| Problem | missingnumber |
|---|---|
| User | carson |
| Submission Time | 2025-10-13 18:15:09 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
missingnumber.cpp: In function ‘int main()’:
missingnumber.cpp:4:2: error: ‘ll’ was not declared in this scope
4 | ll n;
| ^~
missingnumber.cpp:5:9: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
5 | cin >> n;
| ^
| yn
missingnumber.cpp:6:4: error: expected ‘;’ before ‘expected_sum’
6 | ll expected_sum = n * (n+1) / 2;
| ^~~~~~~~~~~~~
| ;
missingnumber.cpp:7:4: error: expected ‘;’ before ‘sum’
7 | ll sum = 0;
| ^~~~
| ;
missingnumber.cpp:11:3: error: ‘sum’ was not declared in this scope
11 | sum += x;
| ^~~
missingnumber.cpp:13:10: error: ‘expected_sum’ was not declared in this scope
13 | cout << expected_sum - sum;
| ^~~~~~~~~~~~
missingnumber.cpp:13:25: error: ‘sum’ was not declared in this scope
13 | cout << expected_sum - sum;
|