Borderou de evaluare (job #615286)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Capitala | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 10 nov. 2021 00:47:36 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:175:17: error: ambiguous overload for 'operator<<' (operand types are 'OutParser' and 'std::vector<int>::size_type' {aka 'unsigned int'})
175 | g<<DMAX<<" "<<sol.size();
| ~~~~~~~~~~~~^~~~~~~~~~~~
| | |
| OutParser std::vector<int>::size_type {aka unsigned int}
main.cpp:99:16: note: candidate: 'OutParser& OutParser::operator<<(int)'
99 | OutParser& operator << (int vu32) {
| ^~~~~~~~
main.cpp:109:16: note: candidate: 'OutParser& OutParser::operator<<(long long int)'
109 | OutParser& operator << (long long vu64) {
| ^~~~~~~~
main.cpp:119:16: note: candidate: 'OutParser& OutParser::operator<<(char)'
119 | OutParser& operator << (char ch) {
| ^~~~~~~~
main.cpp:177:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
177 | for(auto a:sol)
| ^~~
main.cpp:179:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
179 | return 0;
| ^~~~~~
main.cpp: In member function 'char InParser::read_ch()':
main.cpp:23:18: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
23 | fread(buff, 1, 4096, fin);
| ~~~~~^~~~~~~~~~~~~~~~~~~~