Borderou de evaluare (job #1581166)
Utilizator | Data | 26 ianuarie 2016 17:15:40 | |
---|---|---|---|
Problema | Numarare triunghiuri | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:1: error: reference to ‘vector’ is ambiguous
vector v;
^
user.cpp:7:13: note: candidates are: typedef int vector [810]
typedef int vector[MAXN];
^
In file included from /usr/include/c++/4.8/vector:64:0,
from /usr/include/c++/4.8/bits/random.h:34,
from /usr/include/c++/4.8/random:50,
from /usr/include/c++/4.8/bits/stl_algo.h:65,
from /usr/include/c++/4.8/algorithm:62,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_vector.h:210:11: note: template<class _Tp, class _Alloc> class std::vector
class vector : protected _Vector_base<_Tp, _Alloc>
^
user.cpp:9:1: error: ‘vector’ does not name a type
vector v;
^
user.cpp: In function ‘void file_in()’:
user.cpp:16:26: error: ‘v’ was not declared in this scope
if (scanf("%d", &v[i]))
^
user.cpp: In function ‘int caut(int, int, int)’:
user.cpp:31:13: error: ‘v’ was not declared in this scope
if (v[mid] <= x) {
^
user.cpp: In function ‘int main()’:
user.cpp:48:10: error: ‘v’ was not declared in this scope
sort(v+1, v+n+1);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !