Borderou de evaluare (job #1322352)
Utilizator | Data | 19 ianuarie 2015 23:00:59 | |
---|---|---|---|
Problema | Semne3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:11: error: wrong number of template arguments (1, should be 4)
map < int > v;
^
In file included from /usr/include/c++/4.8/map:61:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:80,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_map.h:96:11: error: provided for ‘template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map’
class map
^
user.cpp:6:14: error: invalid type in declaration before ‘;’ token
map < int > v;
^
user.cpp: In function ‘int main()’:
user.cpp:11:29: error: request for member ‘insert’ in ‘v’, which is of non-class type ‘int’
for (int i=0;i<n;++i) v.insert(i + 1);
^
user.cpp:18:49: error: request for member ‘begin’ in ‘v’, which is of non-class type ‘int’
for (int x = 0;x < l;++x) fo << *(v.begin() + x) << ' ';
^
user.cpp:19:41: error: request for member ‘erase’ in ‘v’, which is of non-class type ‘int’
for (int x = 0;x < l;++x) v.erase(v.begin());
^
user.cpp:19:49: error: request for member ‘begin’ in ‘v’, which is of non-class type ‘int’
for (int x = 0;x < l;++x) v.erase(v.begin());
^
user.cpp:24:24: error: request for member ‘size’ in ‘v’, which is of non-class type ‘int’
if (l == v.size())
^
user.cpp:26:51: error: request for member ‘begin’ in ‘v’, which is of non-class type ‘int’
for (int x=l-1;x+1;--x) fo << *(v.begin() + x) << ' ';
^
user.cpp:29:44: error: request for member ‘begin’ in ‘v’, which is of non-class type ‘int’
for (int x = l;x;--x) fo << (v.begin() + x) << ' ';
^
user.cpp:30:37: error: request for member ‘erase’ in ‘v’, which is of non-class type ‘int’
for (int x = l;x;--x) v.erase(v.begin() + 1);
^
user.cpp:30:45: error: request for member ‘begin’ in ‘v’, which is of non-class type ‘int’
for (int x = l;x;--x) v.erase(v.begin() + 1);
^
user.cpp:33:26: error: invalid types ‘int[int]’ for array subscript
fo << v[0] << ' ';++j;v.erase(v.begin());
^
user.cpp:33:41: error: request for member ‘erase’ in ‘v’, which is of non-class type ‘int’
fo << v[0] << ' ';++j;v.erase(v.begin());
^
user.cpp:33:49: error: request for member ‘begin’ in ‘v’, which is of non-class type ‘int’
fo << v[0] << ' ';++j;v.erase(v.begin());
^
user.cpp:37:14: error: invalid types ‘int[int]’ for array subscript
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !