Borderou de evaluare (job #2552204)
Utilizator | Data | 20 februarie 2020 17:46:34 | |
---|---|---|---|
Problema | Mesaje | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:5: error: 'int index' redeclared as different kind of symbol
int index, ans, linie;
^~~~~
In file included from /usr/include/c++/6/cstring:42:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:48,
from main.cpp:1:
/usr/include/string.h:477:1: note: previous declaration 'const char* index(const char*, int)'
index (const char *__s, int __c) __THROW
^~~~~
main.cpp: In function 'void GetCuvinte(std::__cxx11::string&, std::vector<std::__cxx11::basic_string<char> >&)':
main.cpp:15:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < a.size(); ++i)
~~^~~~~~~~~~
main.cpp: In function 'bool Egale(std::__cxx11::string&, std::__cxx11::string&)':
main.cpp:31:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < a.size(); ++i)
~~^~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:48:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < aux.size(); ++i)
~~^~~~~~~~~~~~
main.cpp:55:21: error: overloaded function with no contextual type information
index = linie;
^~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !