Borderou de evaluare (job #776201)

Utilizator avatar S_Oleg Oleg Sirbu S_Oleg IP ascuns
Problemă Habarnam (clasele 11-12) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 25 apr. 2024 13:38:26 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:1:1: error: 'include' does not name a type 1 | include <bits/stdc++.h> | ^~~~~~~ main.cpp: In function 'data combine(data, data)': main.cpp:15:14: error: 'max' was not declared in this scope; did you mean 'maxn'? 15 | res.pref=max(l.pref,l.sum+r.pref); | ^~~ | maxn main.cpp: In function 'data make_data(int)': main.cpp:23:31: error: 'max' was not declared in this scope; did you mean 'maxn'? 23 | res.pref=res.suff=res.ans=max(0,val); | ^~~ | maxn main.cpp: In function 'int main()': main.cpp:52:2: error: 'ifstream' was not declared in this scope 52 | ifstream cin("habarnam.in"); | ^~~~~~~~ main.cpp:53:3: error: 'ofstream' was not declared in this scope 53 | ofstream cout("habarnam.out"); | ^~~~~~~~ main.cpp:55:2: error: 'cin' was not declared in this scope 55 | cin >> n >> q; | ^~~ main.cpp:60:2: error: 'cout' was not declared in this scope 60 | cout << segt[1].ans << endl; | ^~~~