Borderou de evaluare (job #651090)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Debarcare (clasa a 7-a) | Compilator | cpp-32 |
| Rundă | lasm_25_05_2022_cl10_11 | Status | evaluat |
| Dată | 25 mai 2022 15:05:10 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:12:23: error: array must be initialized with a brace-enclosed initializer
12 | string A[x] = "", temp = "";
| ^~
main.cpp:14:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare]
14 | for (int j = i; j < S.size(); j+=x){
| ~~^~~~~~~~~~
main.cpp:18:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare]
18 | for (int j = 0; j < A[i].length(); j++) {
| ~~^~~~~~~~~~~~~~~
main.cpp:37:35: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare]
37 | for (int j = 1; j < temp.size(); j++)
| ~~^~~~~~~~~~~~~