Borderou de evaluare (job #2860683)
Utilizator | Data | 2 martie 2022 22:24:21 | |
---|---|---|---|
Problema | Potrivirea sirurilor | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:36:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
36 | for (i = M; i; --i) A[i] = A[i-1]; A[0] = ' ';
| ^~~
main.cpp:36:40: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
36 | for (i = M; i; --i) A[i] = A[i-1]; A[0] = ' ';
| ^
main.cpp:37:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
37 | for (i = N; i; --i) B[i] = B[i-1]; B[0] = ' ';
| ^~~
main.cpp:37:40: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
37 | for (i = N; i; --i) B[i] = B[i-1]; B[0] = ' ';
| ^
main.cpp:57:22: error: 'min' was not declared in this scope; did you mean 'std::min'?
57 | for (i = 1; i <= min(n, 1000); ++i)
| ^~~
| std::min
In file included from /usr/include/c++/10/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:65,
from main.cpp:1:
/usr/include/c++/10/bits/stl_algo.h:3474:5: note: 'std::min' declared here
3474 | min(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !