Borderou de evaluare (job #3151297)

Utilizator proflaurianPanaete Adrian proflaurian Data 20 septembrie 2023 16:18:14
Problema Arbori de intervale Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:19:12: error: 't' was not declared in this scope; did you mean 'tm'? 19 | f>>t>>a>>b; | ^ | tm main.cpp:21:27: error: no match for 'operator=' (operand types are 'std::ofstream' {aka 'std::basic_ofstream<char>'} and 'int') 21 | g=getMax(1,1,p); | ^ In file included from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:70, from main.cpp:1: /usr/include/c++/12.2.1/fstream:877:7: note: candidate: 'std::basic_ofstream<_CharT, _Traits>& std::basic_ofstream<_CharT, _Traits>::operator=(std::basic_ofstream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits<char>]' 877 | operator=(basic_ofstream&& __rhs) | ^~~~~~~~ /usr/include/c++/12.2.1/fstream:877:34: note: no known conversion for argument 1 from 'int' to 'std::basic_ofstream<char>&&' 877 | operator=(basic_ofstream&& __rhs) | ~~~~~~~~~~~~~~~~~^~~~~ main.cpp: At global scope: main.cpp:37:5: error: ambiguating new declaration of 'int upd()' 37 | int upd() | ^~~ main.cpp:6:6: note: old declaration 'void upd()' 6 | void upd(); | ^~~ main.cpp: In function 'int upd()': main.cpp:47:1: warning: no return statement in function returning non-void [-Wreturn-type] 47 | } | ^ Non zero exit status: 1

Ceva nu functioneaza?