Sudurtiniai žodžiai
Taškai: 0
Compile: OK
sudurtinis.cpp: In function ‘bool sudurt(std::string, std::string*)’: sudurtinis.cpp:10:28: warning: ‘sizeof’ on array function parameter ‘zodziai’ will return size of ‘std::string*’ {aka ‘std::__cxx11::basic_string<char>*’} [-Wsizeof-array-argument] 10 | for (int i=0; i<sizeof(zodziai) / sizeof(zodziai[0]); i++){ | ~^~~~~~~~ sudurtinis.cpp:9:34: note: declared here 9 | bool sudurt(string zodis, string zodziai[]){ | ~~~~~~~^~~~~~~~~ sudurtinis.cpp:11:32: warning: ‘sizeof’ on array function parameter ‘zodziai’ will return size of ‘std::string*’ {aka ‘std::__cxx11::basic_string<char>*’} [-Wsizeof-array-argument] 11 | for (int j=0; j<sizeof(zodziai) / sizeof(zodziai[0]); j++){ | ~^~~~~~~~ sudurtinis.cpp:9:34: note: declared here 9 | bool sudurt(string zodis, string zodziai[]){ | ~~~~~~~^~~~~~~~~
nr. | result | time | message |
---|---|---|---|
1 | False | 0.005 s | Nėra rezultatų failo |