Pagini recente » Borderou de evaluare (job #2249562) | Borderou de evaluare (job #956587) | Borderou de evaluare (job #3270882) | Borderou de evaluare (job #327073) | Borderou de evaluare (job #3208311)
Borderou de evaluare (job #3208311)
Raport evaluator
Compilare:
main.cpp: In function 'bool cmp(std::string, std::string)':
main.cpp:23:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
23 | for (int i = 0; i < a.size(); i++) {
| ~~^~~~~~~~~~
main.cpp: In function 'bool comp(std::string, std::string)':
main.cpp:34:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
34 | for (; i <= a.size(); i++) {
| ~~^~~~~~~~~~~
main.cpp:37:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
37 | if (j >= b.size())
| ~~^~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:54:27: warning: loop variable 'str' creates a copy from type 'const std::string' {aka 'const std::__cxx11::basic_string<char>'} [-Wrange-loop-construct]
54 | for (const string str : sir)
| ^~~
main.cpp:54:27: note: use reference type to prevent copying
54 | for (const string str : sir)
| ^~~
| &
main.cpp:60:34: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
60 | if (cpySir[i].size() == sz) {
| ~~~~~~~~~~~~~~~~~^~~~~
main.cpp:69:27: warning: loop variable 'str' creates a copy from type 'const std::string' {aka 'const std::__cxx11::basic_string<char>'} [-Wrange-loop-construct]
69 | for (const string str : sir)
| ^~~
main.cpp:69:27: note: use reference type to prevent copying
69 | for (const string str : sir)
| ^~~
| &
main.cpp:82:27: warning: loop variable 'str' creates a copy from type 'const std::string' {aka 'const std::__cxx11::basic_string<char>'} [-Wrange-loop-construct]
82 | for (const string str : sir) {
| ^~~
main.cpp:82:27: note: use reference type to prevent copying
82 | for (const string str : sir) {
| ^~~
| &
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 1ms | 1081kb | OK. | 5 | 20 |
2 | 1ms | 1343kb | OK. | 5 |
3 | 0ms | 303kb | OK. | 5 |
4 | 0ms | 561kb | OK. | 5 |
5 | 0ms | 303kb | OK. | 3 | 3 |
6 | 14ms | 819kb | OK. | 3 | 3 |
7 | 0ms | 303kb | OK. | 3 | 3 |
8 | 14ms | 819kb | OK. | 3 | 3 |
9 | 103ms | 2392kb | OK. | 4 | 4 |
10 | 49ms | 1343kb | OK. | 4 | 4 |
11 | 84ms | 2129kb | OK. | 4 | 4 |
12 | 64ms | 2285kb | OK. | 4 | 4 |
13 | 69ms | 1605kb | OK. | 4 | 4 |
14 | 59ms | 1605kb | OK. | 5 | 5 |
15 | 39ms | 1867kb | OK. | 5 | 5 |
16 | 178ms | 2424kb | OK. | 5 | 5 |
17 | 99ms | 1605kb | OK. | 5 | 5 |
18 | 34ms | 2392kb | OK. | 5 | 5 |
19 | 44ms | 2392kb | OK. | 5 | 5 |
20 | 392ms | 2392kb | OK. | 6 | 6 |
21 | 407ms | 2392kb | OK. | 6 | 6 |
22 | 49ms | 2392kb | OK. | 6 | 6 |
Punctaj total | 100 |