| Problem | palindromicfizzbuzz |
|---|---|
| User | loyaltypollution |
| Submission Time | 2026-02-16 21:50:27 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
palindromicfizzbuzz.cpp: In function ‘bool isPalindrome(int)’:
palindromicfizzbuzz.cpp:6:2: error: ‘vector’ was not declared in this scope
6 | vector<int> digits;
| ^~~~~~
palindromicfizzbuzz.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include<iostream>
+++ |+#include <vector>
2 |
palindromicfizzbuzz.cpp:6:9: error: expected primary-expression before ‘int’
6 | vector<int> digits;
| ^~~
palindromicfizzbuzz.cpp:8:3: error: ‘digits’ was not declared in this scope
8 | digits.push_back(x % 10);
| ^~~~~~
palindromicfizzbuzz.cpp:11:10: error: ‘digits’ was not declared in this scope
11 | int n = digits.size();
| ^~~~~~
palindromicfizzbuzz.cpp: In function ‘int main()’:
palindromicfizzbuzz.cpp:25:22: error: expected ‘)’ before ‘{’ token
25 | if (isPalindrome(i) {<