Borderou de evaluare (job #3213631)

Utilizator CsDavidCsomos David CsDavid Data 13 martie 2024 12:20:53
Problema Cool Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:2:1: error: 'ifstream' does not name a type 2 | ifstream fin("cool.in"); | ^~~~~~~~ main.cpp:3:1: error: 'ofstream' does not name a type 3 | ofstream fout("cool.out"); | ^~~~~~~~ main.cpp: In function 'bool isCool(std::vector<int>&)': main.cpp:11:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 11 | return max_val - min_val == seq.size() - 1; | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:35:5: error: 'fin' was not declared in this scope; did you mean 'sin'? 35 | fin >> p >> N >> K; | ^~~ | sin main.cpp:41:13: error: 'fout' was not declared in this scope 41 | fout << *max_element(seq.begin(), seq.end()) << endl; | ^~~~ main.cpp:44:13: error: 'fout' was not declared in this scope 44 | fout << s.size() << endl; | ^~~~ main.cpp:48:9: error: 'fout' was not declared in this scope 48 | fout << res.first << endl; | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?