Pagini recente » Cod sursa (job #174690) | Borderou de evaluare (job #1019242) | Borderou de evaluare (job #1612000) | Cod sursa (job #1759937) | Borderou de evaluare (job #3282443)
Borderou de evaluare (job #3282443)
Raport evaluator
Compilare:
main.cpp: In constructor 'CustomStringComparator::CustomStringComparator(const std::string&)':
main.cpp:7:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
7 | for (int i = 0; i < order.size(); i++) {
| ~~^~~~~~~~~~~~~~
main.cpp:8:30: warning: array subscript has type 'char' [-Wchar-subscripts]
8 | orderMap[order[i]] = i;
| ^
main.cpp: In member function 'bool CustomStringComparator::operator()(const std::string&, const std::string&)':
main.cpp:14:30: warning: array subscript has type 'char' [-Wchar-subscripts]
14 | if (orderMap[a[i]] != orderMap[b[i]]) {
| ^
main.cpp:14:48: warning: array subscript has type 'char' [-Wchar-subscripts]
14 | if (orderMap[a[i]] != orderMap[b[i]]) {
| ^
main.cpp:15:37: warning: array subscript has type 'char' [-Wchar-subscripts]
15 | return orderMap[a[i]] < orderMap[b[i]];
| ^
main.cpp:15:54: warning: array subscript has type 'char' [-Wchar-subscripts]
15 | return orderMap[a[i]] < orderMap[b[i]];
| ^
main.cpp: In function 'int main()':
main.cpp:36:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
36 | for (int i = 0; i < semne.size(); ++i) {
| ~~^~~~~~~~~~~~~~
main.cpp:37:30: warning: array subscript has type 'char' [-Wchar-subscripts]
37 | base_num[semne[i]] = i;
| ^
main.cpp:44:50: warning: array subscript has type 'char' [-Wchar-subscripts]
44 | nr = nr * 12 + base_num[cuvant[i]];
| ^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 1ms | 1343kb | OK | 5 |
| 2 | 1ms | 1343kb | OK | 5 |
| 3 | 3ms | 1343kb | OK | 5 |
| 4 | 5ms | 1343kb | OK | 5 |
| 5 | 10ms | 1400kb | OK | 5 |
| 6 | 14ms | 1343kb | OK | 5 |
| 7 | 0ms | 303kb | OK | 5 |
| 8 | 1ms | 557kb | OK | 5 |
| 9 | 1ms | 557kb | OK | 5 |
| 10 | 2ms | 561kb | OK | 5 |
| 11 | 4ms | 819kb | OK | 5 |
| 12 | 9ms | 1343kb | OK | 5 |
| 13 | 13ms | 1888kb | OK | 5 |
| 14 | 34ms | 3211kb | OK | 5 |
| 15 | 42ms | 3878kb | OK | 5 |
| 16 | 63ms | 5468kb | OK | 5 |
| 17 | 93ms | 8269kb | Memory limit exceeded | 0 |
| 18 | 3ms | 8421kb | Memory limit exceeded | 0 |
| 19 | 3ms | 8421kb | Memory limit exceeded | 0 |
| 20 | 3ms | 8421kb | Memory limit exceeded | 0 |
| Punctaj total | 80 |