Borderou de evaluare (job #681734)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Matroid | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 13 dec. 2022 19:36:16 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void read()':
main.cpp:169:9: error: 'class InParser' has no member named 'close'
169 | fin.close();
| ^~~~~
main.cpp: In function 'void solve()':
main.cpp:218:10: error: ambiguous overload for 'operator<<' (operand types are 'OutParser' and 'std::vector<int>::size_type' {aka 'unsigned int'})
218 | fout << ctc[ct].size() << "\n";
| ~~~~ ^~ ~~~~~~~~~~~~~~
| | |
| OutParser std::vector<int>::size_type {aka unsigned int}
main.cpp:94:16: note: candidate: 'OutParser& OutParser::operator<<(int)'
94 | OutParser& operator << (int vu32) {
| ^~~~~~~~
main.cpp:105:16: note: candidate: 'OutParser& OutParser::operator<<(long long int)'
105 | OutParser& operator << (long long vu64) {
| ^~~~~~~~
main.cpp:116:16: note: candidate: 'OutParser& OutParser::operator<<(char)'
116 | OutParser& operator << (char ch) {
| ^~~~~~~~
main.cpp: In member function 'char InParser::read_ch()':
main.cpp:16:18: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
16 | fread(buff, 1, 4096, fin);
| ~~~~~^~~~~~~~~~~~~~~~~~~~