Borderou de evaluare (job #721440)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Bitone | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 25 mai 2023 10:22:00 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:36:34: error: missing template arguments before '(' token
36 | bitone.push_back(pair(stanga, i - 1));
| ^
main.cpp:45:26: error: missing template arguments before '(' token
45 | bitone.push_back(pair(stanga, n - 1));
| ^
main.cpp:53:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'unsigned int'} [-Wsign-compare]
53 | for (int j = 0; j < bitone.size(); j++) {
| ~~^~~~~~~~~~~~~~~