Pagini recente »
Borderou de evaluare (job #795779)
|
Borderou de evaluare (job #517878)
|
Borderou de evaluare (job #235460)
|
Borderou de evaluare (job #461031)
|
Borderou de evaluare (job #580146)
Borderou de evaluare (job #580146)
Raport evaluator
Compilare:
main.cpp: In function 'bool checkProtocol(char*, std::string)':
main.cpp:14:23: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare]
14 | for (int i = 0; i < strlen(protocol); i++)
| ~~^~~~~~~~~~~~~~~~~~
main.cpp: In function 'std::string getUserInfo(std::string&)':
main.cpp:28:27: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'unsigned int'} [-Wsign-compare]
28 | for (int i = 0; i < endPoz; i++)
| ~~^~~~~~~~
main.cpp: In function 'bool validateUserInfo(std::string)':
main.cpp:49:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare]
49 | for (int i = 0; i < userInfo.size(); i++)
| ~~^~~~~~~~~~~~~~~~~
main.cpp: In function 'std::string getHostname(std::string&)':
main.cpp:81:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare]
81 | for (int i = 0; i < str.size(); i++)
| ~~^~~~~~~~~~~~
main.cpp: In function 'bool checkNumericIp(std::string)':
main.cpp:99:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare]
99 | for (int i = 0; i < hostname.size(); i++)
| ~~^~~~~~~~~~~~~~~~~
main.cpp: In function 'bool validateHostname(std::string)':
main.cpp:122:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare]
122 | for (int i = 0; i < hostname.size(); i++)
| ~~^~~~~~~~~~~~~~~~~
main.cpp: In function 'std::string getPort(std::string&)':
main.cpp:163:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare]
163 | for (int i = 1; i < str.size(); i++)
| ~~^~~~~~~~~~~~
main.cpp: In function 'bool validatePort(std::string)':
main.cpp:185:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare]
185 | for (int i = 0; i < port.size(); i++)
| ~~^~~~~~~~~~~~~
main.cpp: In function 'bool validatePath(std::string)':
main.cpp:199:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare]
199 | for(int i = 1; i < path.size(); i++)
| ~~^~~~~~~~~~~~~
main.cpp: In function 'void printUserInfo(std::string)':
main.cpp:211:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare]
211 | for(int i = 0; i < userInfo.size(); i++)
| ~~^~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:235:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
235 | if (checkProtocol("https://", str))
| ^~~~~~~~~~
main.cpp:278:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
278 | if (checkProtocol("http://", str))
| ^~~~~~~~~
Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
1
|
1 ms
|
262 kb
|
OK
|
10
|
2
|
1 ms
|
262 kb
|
OK
|
10
|
3
|
1 ms
|
262 kb
|
Incorect
|
0
|
4
|
1 ms
|
262 kb
|
OK
|
10
|
5
|
1 ms
|
262 kb
|
OK
|
10
|
6
|
1 ms
|
262 kb
|
OK
|
10
|
7
|
1 ms
|
262 kb
|
Incorect
|
0
|
8
|
1 ms
|
262 kb
|
OK
|
10
|
9
|
1 ms
|
262 kb
|
Incorect
|
0
|
10
|
1 ms
|
262 kb
|
OK
|
10
|
Punctaj total
|
70
|