Borderou de evaluare (job #1567204)
Utilizator | Data | 12 ianuarie 2016 23:26:04 | |
---|---|---|---|
Problema | String | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘std::string toString(unsigned int)’:
user.cpp:14:2: error: ‘vector’ was not declared in this scope
vector<char> v;
^
user.cpp:14:9: error: expected primary-expression before ‘char’
vector<char> v;
^
user.cpp:14:9: error: expected ‘;’ before ‘char’
user.cpp:18:3: error: ‘v’ was not declared in this scope
v.push_back (c);
^
user.cpp:20:17: error: ‘v’ was not declared in this scope
return string (v.begin (), v.end ());
^
user.cpp: In function ‘int main()’:
user.cpp:38:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (unsigned i = 0; i <= n; i++)
^
user.cpp: In function ‘std::string toString(unsigned int)’:
user.cpp:21:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !