Pagini recente »
Borderou de evaluare (job #67698)
|
Borderou de evaluare (job #80227)
|
Borderou de evaluare (job #308291)
|
Borderou de evaluare (job #373976)
|
Borderou de evaluare (job #687986)
Borderou de evaluare (job #687986)
Raport evaluator
Compilare:
main.cpp: In function 'int length(std::string)':
main.cpp:12:21: warning: unused variable 'i' [-Wunused-variable]
12 | int i = 1;
| ^
main.cpp:11:19: warning: unused variable 'ch' [-Wunused-variable]
11 | for (char ch : mesaj){
| ^~
main.cpp:14:1: warning: no return statement in function returning non-void [-Wreturn-type]
14 | }
| ^
main.cpp: In function 'int main()':
main.cpp:27:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare]
27 | while(i <= mesajenc.length()){
| ~~^~~~~~~~~~~~~~~~~~~~
main.cpp:36:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::basic_string<char> >::size_type' {aka 'unsigned int'} [-Wsign-compare]
36 | for (int i = 0; i < mesaje.size(); i++){
| ~~^~~~~~~~~~~~~~~
main.cpp:38:43: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare]
38 | for (int j = 0; j < mesaje.at(i).length(); j++){
| ~~^~~~~~~~~~~~~~~~~~~~~~~
main.cpp:42:43: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare]
42 | for (int j = 0; j < mesaje.at(i).length(); j++){
| ~~^~~~~~~~~~~~~~~~~~~~~~~
main.cpp:50:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare]
50 | for (int j = 0; j < mesajenc.size()/n; j++){
| ~~^~~~~~~~~~~~~~~~~~~
main.cpp:16:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
16 | freopen("codificare.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:17:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
17 | freopen("codificare.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
1
|
1 ms
|
241 kb
|
OK
|
10
|
2
|
1 ms
|
118 kb
|
Killed by Signal 11
|
0
|
3
|
1 ms
|
114 kb
|
OK
|
10
|
4
|
1 ms
|
114 kb
|
OK
|
10
|
5
|
1 ms
|
118 kb
|
Killed by Signal 11
|
0
|
6
|
1 ms
|
114 kb
|
OK
|
10
|
7
|
1 ms
|
114 kb
|
OK
|
10
|
8
|
1 ms
|
114 kb
|
OK
|
10
|
9
|
1 ms
|
114 kb
|
OK
|
10
|
10
|
1 ms
|
114 kb
|
OK
|
10
|
Punctaj total
|
80
|