Problem guanine
User ilovepythonandhatecplusplus
Submission Time 2024-10-23 17:21:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

guanine.cpp: In function ‘int main()’:
guanine.cpp:8:6: error: ‘i’ was not declared in this scope
8 | for (i=0;i<n;i++){
| ^
guanine.cpp:12:28: error: no matching function for call to ‘std::deque<long long int>::push_back(std::string&)’
12 | arr.push_back(thing);
| ^
In file included from /usr/include/c++/9/deque:67,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:68,
from guanine.cpp:1:
/usr/include/c++/9/bits/stl_deque.h:1569:7: note: candidate: ‘void std::deque<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::deque<_Tp, _Alloc>::value_type = long long int]’
1569 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/9/bits/stl_deque.h:1569:35: note: no known conversion for argument 1 from ‘std::string’ {aka ‘std::__cxx11::bas