| Problem | GSS |
|---|---|
| User | 123 |
| Submission Time | 2026-07-11 09:40:08 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
GSS.cpp: In function ‘int main()’:
GSS.cpp:5:5: error: ‘cin’ was not declared in this scope
5 | cin >> n;
| ^~~
GSS.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
GSS.cpp:7:5: error: ‘vector’ was not declared in this scope
7 | vector<int> price(n);
| ^~~~~~
GSS.cpp:1:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
+++ |+#include <vector>
1 | using namespace std;
GSS.cpp:7:12: error: expected primary-expression before ‘int’
7 | vector<int> price(n);
| ^~~
GSS.cpp:10:16: error: ‘price’ was not declared in this scope
10 | cin >> price[i];
| ^~~~~
GSS.cpp:13:10: error: ‘price’ was not declared in this scope
13 |