Borderou de evaluare (job #3213634)

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

Raport evaluator

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

Ceva nu functioneaza?