Borderou de evaluare (job #2179899)
Utilizator | Data | 20 martie 2018 15:28:22 | |
---|---|---|---|
Problema | Generare de permutari | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:1: error: ‘ifstream’ does not name a type
ifstream fin("permutari.in");
^
user.cpp:7:1: error: ‘ofstream’ does not name a type
ofstream fout("permutari.out");
^
user.cpp: In function ‘int main()’:
user.cpp:12:2: error: ‘fin’ was not declared in this scope
fin >> n;
^
user.cpp:13:2: error: ‘vector’ was not declared in this scope
vector <int> v(n);
^
user.cpp:13:2: note: suggested alternative:
In file included from /usr/include/c++/5/vector:64:0,
from /usr/include/c++/5/bits/random.h:34,
from /usr/include/c++/5/random:49,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from user.cpp:3:
/usr/include/c++/5/bits/stl_vector.h:214:11: note: ‘std::vector’
class vector : protected _Vector_base<_Tp, _Alloc>
^
user.cpp:13:10: error: expected primary-expression before ‘int’
vector <int> v(n);
^
user.cpp:15:3: error: ‘v’ was not declared in this scope
v[i-1] = i;
^
user.cpp:19:4: error: ‘fout’ was not declared in this scope
fout << v[i-1] << ' ';
^
user.cpp:19:12: error: ‘v’ was not declared in this scope
fout << v[i-1] << ' ';
^
user.cpp:20:3: error: ‘fout’ was not declared in this scope
fout << '\n';
^
user.cpp:21:26: error: ‘v’ was not declared in this scope
}while(next_permutation(v.begin(), v.end()));
^
user.cpp:21:44: error: ‘next_permutation’ was not declared in this scope
}while(next_permutation(v.begin(), v.end()));
^
user.cpp:21:44: note: suggested alternative:
In file included from /usr/include/c++/5/algorithm:62:0,
from user.cpp:3:
/usr/include/c++/5/bits/stl_algo.h:2988:5: note: ‘std::next_permutation’
next_permutation(_BidirectionalIterator __first,
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !