Pagini recente »
Borderou de evaluare (job #274908)
|
Borderou de evaluare (job #481629)
|
Borderou de evaluare (job #219519)
|
Borderou de evaluare (job #674813)
|
Borderou de evaluare (job #846633)
Borderou de evaluare (job #846633)
Raport evaluator
Compilare:
main.cpp: In function 'bool starts_with(std::string, std::string)':
main.cpp:23:29: 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, j = 0; j < b.size(); j++, i++)
| ~~^~~~~~~~~~
main.cpp:24:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
24 | if(i >= a.size() || (a[i] != b[j] && b[j] != '.'))
| ~~^~~~~~~~~~~
main.cpp: In function 'node* find_child(node*, std::string)':
main.cpp:30:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
30 | for(node * child : n->children)
| ^~~
main.cpp:33:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
33 | return nullptr;
| ^~~~~~
main.cpp: In function 'bool matches(std::string, std::string)':
main.cpp:38:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | for(int i = 1; i < q.size(); i++)
| ~~^~~~~~~~~~
main.cpp:39:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
39 | if(i - 1 >= str.size() || (str[i - 1] != q[i] && q[i] != '.'))
| ~~~~~~^~~~~~~~~~~~~
main.cpp:49:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
49 | for(int i = 0; i < str.size(); i++)
| ~~^~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:71:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
71 | for(int i = 0; i < line.size() && line[i] == '>'; i++, level++);
| ~~^~~~~~~~~~~~~
main.cpp:73:46: warning: comparison of integer expressions of different signedness: 'int' and 'std::stack<node*>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
73 | while(levels.size() > 1 && level + 1 < levels.size()) // 4
| ~~~~~~~~~~^~~~~~~~~~~~~~~
main.cpp:104:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
104 | for(int i = index; i < line.size(); i++){
| ~~^~~~~~~~~~~~~
| Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
|
1
|
1 ms
|
508 kb
|
OK
|
10
|
|
2
|
1 ms
|
508 kb
|
OK
|
10
|
|
3
|
1 ms
|
500 kb
|
OK
|
10
|
|
4
|
1 ms
|
288 kb
|
OK
|
10
|
|
5
|
1 ms
|
292 kb
|
OK
|
10
|
|
6
|
1 ms
|
292 kb
|
OK
|
10
|
|
7
|
4 ms
|
496 kb
|
OK
|
10
|
|
8
|
1 ms
|
284 kb
|
OK
|
10
|
|
9
|
1 ms
|
512 kb
|
Killed by signal 11.
|
0
|
|
10
|
1 ms
|
292 kb
|
OK
|
10
|
|
Punctaj total
|
90
|