Utilizator |
Problema |
Data |
Compilator |
Scor |
|---|---|---|---|---|
23 Iulie 2024, 20:36 |
c++14 |
100.0 |
In file included from /usr/include/c++/11/cassert:44,
from main.cpp:3:
main.cpp: In function ‘void expresie(int, const string&, int&, std::string&)’:
main.cpp:16:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
16 | assert(p < in.size());
| ~~^~~~~~~~~~~
main.cpp:23:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
23 | if (p + 2 < in.size() && in.substr(p, 3) == name[type]) {
| ~~~~~~^~~~~~~~~~~
In file included from /usr/include/c++/11/cassert:44,
from main.cpp:3:
main.cpp:26:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
26 | assert(p < in.size() && in[p] == '(');
| ~~^~~~~~~~~~~
main.cpp:30:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
30 | while (p < in.size() && in[p] == ',') {
| ~~^~~~~~~~~~~
In file included from /usr/include/c++/11/cassert:44,
from main.cpp:3:
main.cpp:36:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
36 | assert(p < in.size() && in[p] == ')');
| ~~^~~~~~~~~~~
main.cpp: In function ‘void neg(const string&, int&, std::string&)’:
main.cpp:44:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
44 | assert(p < in.size());
| ~~^~~~~~~~~~~
main.cpp:46:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
46 | if (p + 2 < in.size() && in.substr(p, 3) == "neg") {
| ~~~~~~^~~~~~~~~~~
In file included from /usr/include/c++/11/cassert:44,
from main.cpp:3:
main.cpp:49:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
49 | assert(p < in.size() && in[p] == '(');
| ~~^~~~~~~~~~~
main.cpp:55:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
55 | assert(p < in.size() && in[p] == ')');
| ~~^~~~~~~~~~~
main.cpp: In function ‘void unit(const string&, int&, std::string&)’:
main.cpp:63:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
63 | assert(p < in.size());
| ~~^~~~~~~~~~~
Subtask |
Test |
Mesaj evaluator |
Timp execuție |
Memorie |
|---|---|---|---|---|
|
1,
3
|
1
|
correct |
0,001 |
176KB |
|
1,
3
|
2
|
correct |
0,0 |
176KB |
|
1,
3
|
3
|
correct |
0,001 |
176KB |
|
1,
3
|
4
|
correct |
0,001 |
176KB |
|
3
|
5
|
correct |
0,001 |
176KB |
|
3
|
6
|
correct |
0,001 |
176KB |
|
3
|
7
|
correct |
0,0 |
176KB |
|
3
|
8
|
correct |
0,0 |
176KB |
|
3
|
9
|
correct |
0,001 |
176KB |
|
3
|
10
|
correct |
0,001 |
176KB |
|
3
|
11
|
correct |
0,001 |
176KB |
|
3
|
12
|
correct |
0,001 |
176KB |
|
3
|
13
|
correct |
0,001 |
176KB |
|
2,
3
|
14
|
correct |
0,001 |
176KB |
|
2,
3
|
15
|
correct |
0,001 |
176KB |
|
2,
3
|
16
|
correct |
0,001 |
176KB |
|
2,
3
|
17
|
correct |
0,001 |
176KB |
|
2,
3
|
18
|
correct |
0,001 |
176KB |
Subtask |
Scor |
Scor maxim |
|---|---|---|
1 |
31,0 |
31
|
2 |
32,0 |
32
|
3 |
37,0 |
37
|