Borderou de evaluare (job #632354)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Channels (clasa a 8-a) | Compilator | cpp-32 |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 12 feb. 2022 17:21:59 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:139:29: warning: comparison of integer expressions of different signedness: 'short int' and 'std::vector<std::pair<short int, short int> >::size_type' {aka 'unsigned int'} [-Wsign-compare]
139 | for (short j = 0; j < (i -> second).size(); ++ j) {
| ~~^~~~~~~~~~~~~~~~~~~~~~
main.cpp:149:10: error: ambiguous overload for 'operator<<' (operand types are 'OutParser' and 'long long int')
149 | fout << cost;
| ~~~~ ^~ ~~~~
| | |
| | long long int
| OutParser
main.cpp:81:16: note: candidate: 'OutParser& OutParser::operator<<(int)'
81 | OutParser& operator << (int int_number) {
| ^~~~~~~~
main.cpp:95:16: note: candidate: 'OutParser& OutParser::operator<<(char)'
95 | OutParser& operator << (char character) {
| ^~~~~~~~
main.cpp: In member function 'char InParser::get_next_character()':
main.cpp:10:18: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
10 | fread(buffer, 1, 4096, fin);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~