| Problem | fatty |
|---|---|
| User | Dhivyan03 |
| Submission Time | 2026-06-24 11:09:34 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
fatty.cpp: In function ‘int main()’:
fatty.cpp:8:1: error: ‘cin’ was not declared in this scope
8 | cin >> n >> x;
| ^~~
fatty.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
fatty.cpp:10:1: error: ‘vector’ was not declared in this scope
10 | vector<int> p(n);
| ^~~~~~
fatty.cpp:1:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
+++ |+#include <vector>
1 | using namespace std;
fatty.cpp:10:8: error: expected primary-expression before ‘int’
10 | vector<int> p(n);
| ^~~
fatty.cpp:14:9: error: expected primary-expression before ‘int’
14 | vector <int> st;
| ^~~
fatty.cpp:21:12: error: ‘p’ was not declared in this scope
21 | cin >> p[i];