| Problem | justright |
|---|---|
| User | LeonKong |
| Submission Time | 2026-11-06 14:13:52 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
justright.cpp: In function ‘int main()’:
justright.cpp:4:5: error: ‘cin’ was not declared in this scope
4 | cin >> n >> k;
| ^~~
justright.cpp:5:5: error: ‘vector’ was not declared in this scope
5 | vector<int> a(n);
| ^~~~~~
justright.cpp:5:12: error: expected primary-expression before ‘int’
5 | vector<int> a(n);
| ^~~
justright.cpp:7:10: error: ‘a’ was not declared in this scope
7 | sort(a.begin(), a.end());
| ^
justright.cpp:7:5: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
7 | sort(a.begin(), a.end());
| ^~~~
| short
justright.cpp:8:5: error: ‘cout’ was not declared in this scope
8 | cout << a[0];
| ^~~~