Borderou de evaluare (job #2804395)
Utilizator | Data | 21 noiembrie 2021 11:08:40 | |
---|---|---|---|
Problema | Granițe | Status | done |
Runda | Baraj - Tudor Vianu + ICHB - Seniori - 2021 | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:60:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
60 | while (i < s.size()) {
| ~~^~~~~~~~~~
main.cpp:80:11: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
80 | if (x <= s.size() / 3)
| ~~^~~~~~~~~~~~~~~
main.cpp:87:3: error: 'asset' was not declared in this scope
87 | asset(st <= dr);
| ^~~~~
main.cpp:91:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
91 | for (int i = 0; i < prefix.size(); i++) {
| ~~^~~~~~~~~~~~~~~
main.cpp:94:7: error: 'assert' was not declared in this scope
94 | assert(st >= 0);
| ^~~~~~
main.cpp:5:1: note: 'assert' is defined in header '<cassert>'; did you forget to '#include <cassert>'?
4 | #include<algorithm>
+++ |+#include <cassert>
5 | #pragma GCC optimize ("O2")
main.cpp:97:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
97 | while (dr < s.size() - prefix[i]) {
main.cpp:99:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
99 | assert(dr < s.size());
| ~~~^~~~~~~~~~
main.cpp:99:7: error: 'assert' was not declared in this scope
99 | assert(dr < s.size());
| ^~~~~~
main.cpp:99:7: note: 'assert' is defined in header '<cassert>'; did you forget to '#include <cassert>'?
main.cpp:56:11: warning: unused variable 't1' [-Wunused-variable]
56 | clock_t t1 = clock();
| ^~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !