Borderou de evaluare (job #1357035)
Utilizator | Data | 23 februarie 2015 18:38:50 | |
---|---|---|---|
Problema | Subsecvente2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:40:2: error: ‘string’ does not name a type
string lcs(const string& s1, const string& s2)
^
user.cpp:91:2: error: ‘vector’ does not name a type
vector<string> v;
^
user.cpp: In constructor ‘Subsecvente2::Subsecvente2()’:
user.cpp:13:3: error: ‘ifstream’ was not declared in this scope
ifstream in("subsecvente2.in");
^
user.cpp:13:3: note: suggested alternative:
In file included from /usr/include/c++/4.8/ios:38:0,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/c++/4.8/iosfwd:157:34: note: ‘std::ifstream’
typedef basic_ifstream<char> ifstream;
^
user.cpp:13:12: error: expected ‘;’ before ‘in’
ifstream in("subsecvente2.in");
^
user.cpp:15:3: error: ‘in’ was not declared in this scope
in >> n;
^
user.cpp:17:3: error: ‘v’ was not declared in this scope
v.resize(n);
^
user.cpp:18:8: error: ‘string’ was not declared in this scope
for (string& s : v)
^
user.cpp:18:8: note: suggested alternative:
In file included from /usr/include/c++/4.8/iosfwd:39:0,
from /usr/include/c++/4.8/ios:38,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/c++/4.8/bits/stringfwd.h:62:33: note: ‘std::string’
typedef basic_string<char> string;
^
user.cpp:18:18: error: found ‘:’ in nested-name-specifier, expected ‘::’
for (string& s : v)
^
user.cpp:18:16: error: ‘s’ has not been declared
for (string& s : v)
^
user.cpp:18:21: error: expected ‘;’ before ‘)’ token
for (string& s : v)
^
user.cpp:25:10: error: expected ‘)’ before ‘common’
string common = lcs(v[0], v[1]);
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !