| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1320038 | unknown | Souvenirs (IOI25_souvenirs) | C++20 | Compilation error | 0 ms | 0 KiB |
#include "souvenirs.h"
#include <vector>
pair<vector<int>, long long> result;
void buy_souvenirs(int N, long long P0) {
result = transaction(P0-1);
return;
}
Compilation message (stderr)
souvenirs.cpp:3:6: error: 'vector' was not declared in this scope
3 | pair<vector<int>, long long> result;
| ^~~~~~
souvenirs.cpp:3:6: note: suggested alternatives:
In file included from /usr/include/c++/13/vector:66,
from souvenirs.h:2,
from souvenirs.cpp:1:
/usr/include/c++/13/bits/stl_vector.h:428:11: note: 'std::vector'
428 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
/usr/include/c++/13/vector:86:13: note: 'std::pmr::vector'
86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
souvenirs.cpp:3:6: error: 'vector' was not declared in this scope
3 | pair<vector<int>, long long> result;
| ^~~~~~
souvenirs.cpp:3:6: note: suggested alternatives:
/usr/include/c++/13/bits/stl_vector.h:428:11: note: 'std::vector'
428 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
/usr/include/c++/13/vector:86:13: note: 'std::pmr::vector'
86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
souvenirs.cpp:3:6: error: 'vector' was not declared in this scope
3 | pair<vector<int>, long long> result;
| ^~~~~~
souvenirs.cpp:3:6: note: suggested alternatives:
/usr/include/c++/13/bits/stl_vector.h:428:11: note: 'std::vector'
428 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
/usr/include/c++/13/vector:86:13: note: 'std::pmr::vector'
86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
souvenirs.cpp:3:6: error: 'vector' was not declared in this scope
3 | pair<vector<int>, long long> result;
| ^~~~~~
souvenirs.cpp:3:6: note: suggested alternatives:
/usr/include/c++/13/bits/stl_vector.h:428:11: note: 'std::vector'
428 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
/usr/include/c++/13/vector:86:13: note: 'std::pmr::vector'
86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
souvenirs.cpp:3:6: error: 'vector' was not declared in this scope
3 | pair<vector<int>, long long> result;
| ^~~~~~
souvenirs.cpp:3:6: note: suggested alternatives:
/usr/include/c++/13/bits/stl_vector.h:428:11: note: 'std::vector'
428 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
/usr/include/c++/13/vector:86:13: note: 'std::pmr::vector'
86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
souvenirs.cpp:3:6: error: 'vector' was not declared in this scope
3 | pair<vector<int>, long long> result;
| ^~~~~~
souvenirs.cpp:3:6: note: suggested alternatives:
/usr/include/c++/13/bits/stl_vector.h:428:11: note: 'std::vector'
428 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
/usr/include/c++/13/vector:86:13: note: 'std::pmr::vector'
86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
souvenirs.cpp:3:6: error: 'vector' was not declared in this scope
3 | pair<vector<int>, long long> result;
| ^~~~~~
souvenirs.cpp:3:6: note: suggested alternatives:
/usr/include/c++/13/bits/stl_vector.h:428:11: note: 'std::vector'
428 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
/usr/include/c++/13/vector:86:13: note: 'std::pmr::vector'
86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
souvenirs.cpp:3:6: error: 'vector' was not declared in this scope
3 | pair<vector<int>, long long> result;
| ^~~~~~
souvenirs.cpp:3:6: note: suggested alternatives:
/usr/include/c++/13/bits/stl_vector.h:428:11: note: 'std::vector'
428 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
/usr/include/c++/13/vector:86:13: note: 'std::pmr::vector'
86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
souvenirs.cpp:3:6: error: 'vector' was not declared in this scope
3 | pair<vector<int>, long long> result;
| ^~~~~~
souvenirs.cpp:3:6: note: suggested alternatives:
/usr/include/c++/13/bits/stl_vector.h:428:11: note: 'std::vector'
428 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
/usr/include/c++/13/vector:86:13: note: 'std::pmr::vector'
86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
souvenirs.cpp:3:1: error: 'pair' does not name a type
3 | pair<vector<int>, long long> result;
| ^~~~
souvenirs.cpp: In function 'void buy_souvenirs(int, long long int)':
souvenirs.cpp:5:9: error: 'result' was not declared in this scope
5 | result = transaction(P0-1);
| ^~~~~~