| Problem | funnyballs |
|---|---|
| User | benji9736 |
| Submission Time | 2025-12-01 13:28:02 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
funnyballs.cpp: In function ‘int main()’:
funnyballs.cpp:5:2: error: ‘vector’ was not declared in this scope
5 | vector<unsigned long long> tmp;
| ^~~~~~
funnyballs.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include <iostream>
+++ |+#include <vector>
2 | using namespace std;
funnyballs.cpp:5:9: error: expected primary-expression before ‘unsigned’
5 | vector<unsigned long long> tmp;
| ^~~~~~~~
funnyballs.cpp:10:3: error: ‘tmp’ was not declared in this scope; did you mean ‘tm’?
10 | tmp.push_back(arr[i])
| ^~~
| tm
funnyballs.cpp:12:2: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
12 | sort(arr, arr+n);
| ^~~~
| qsort
funnyballs.cpp:17:10: error: ‘tmp’ was not declared in this scope; did you mean ‘tm’?
17 | max = tmp[i];