Borderou de evaluare (job #2242325)
Utilizator | Data | 18 septembrie 2018 14:49:26 | |
---|---|---|---|
Problema | Potrivirea sirurilor | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘std::vector<int> buildAutomaton(const string&)’:
user.cpp:16:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 1; i < s.size(); ++i) {
~~^~~~~~~~~~
user.cpp: In function ‘std::pair<std::vector<int>, int> computeMatches(const string&, const string&, int)’:
user.cpp:40:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < haystack.size(); ++i) {
~~^~~~~~~~~~~~~~~~~
user.cpp:49:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (k == needle.size()) {
~~^~~~~~~~~~~~~~~~
user.cpp:52:17: error: ‘matches’ was not declared in this scope
if (matches.size() < limit) {
^~~~~~~
user.cpp:60:12: error: ‘matches’ was not declared in this scope
return matches;
^~~~~~~
user.cpp: In function ‘int main()’:
user.cpp:65:22: error: variable ‘std::ifstream fin’ has initializer but incomplete type
std::ifstream fin("strmatch.in");
^
user.cpp:66:23: error: variable ‘std::ofstream fout’ has initializer but incomplete type
std::ofstream fout("strmatch.out");
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !