Borderou de evaluare (job #2201578)
Utilizator | Data | 5 mai 2018 10:42:10 | |
---|---|---|---|
Problema | Prefix | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘std::vector<int> getLongestSufPrex(const string&)’:
user.cpp:18:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 1,k = 0; i < str.length(); ++i) {
~~^~~~~~~~~~~~~~
user.cpp: In function ‘int main()’:
user.cpp:56:15: error: invalid initialization of non-const reference of type ‘std::istream& {aka std::basic_istream<char>&}’ from an rvalue of type ‘std::basic_istream<char>’
readAndParse(ifstream{ "prefix.in" }, ofstream{ "prefix.out" });
^~~~~~~~~~~~~~~~~~~~~~~
user.cpp:39:6: note: initializing argument 1 of ‘void readAndParse(std::istream&, std::ostream&)’
void readAndParse(istream& in,ostream& out) {
^~~~~~~~~~~~
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !