Borderou de evaluare (job #692472)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Subunic (clasele 11 și 12) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 3 feb. 2023 10:40:57 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int ok(int)':
main.cpp:39:5: error: 'sort' was not declared in this scope; did you mean 'short'?
39 | sort( freq.begin(), freq.end() );
| ^~~~
| short
main.cpp:42:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<unsigned int, int> >::size_type' {aka 'unsigned int'} [-Wsign-compare]
42 | for( int i = 1; i < freq.size(); i++ ) {
| ~~^~~~~~~~~~~~~