Borderou de evaluare (job #2847976)

Utilizator CelestinNegraru Celestin Celestin Data 11 februarie 2022 21:45:02
Problema Lupul Urias si Rau Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:10: error: expected initializer before 'f' 8 | ifstream f; | ^ main.cpp:16:1: error: 'll' does not name a type 16 | ll n,range,l; | ^~ main.cpp: In function 'void read()': main.cpp:23:5: error: 'f' was not declared in this scope 23 | f.open("lupu.in",ios::in); | ^ main.cpp:24:8: error: 'n' was not declared in this scope 24 | f>>n>>range>>l; | ^ main.cpp:24:11: error: 'range' was not declared in this scope 24 | f>>n>>range>>l; | ^~~~~ main.cpp:24:18: error: 'l' was not declared in this scope 24 | f>>n>>range>>l; | ^ main.cpp: In function 'long long int greedy()': main.cpp:36:16: error: 'n' was not declared in this scope 36 | sort(v+1,v+n+1,cmp); | ^ main.cpp:38:28: error: 'range' was not declared in this scope 38 | while(v[cnt].distanta<=range&&cnt<=n) | ^~~~~ main.cpp:46:42: error: 'range' was not declared in this scope 46 | while(maxheap.top().second+bonus>range&&maxheap.size()) | ^~~~~ main.cpp:52:44: error: 'range' was not declared in this scope 52 | if(maxheap.top().second+bonus<=range) | ^~~~~ main.cpp:56:20: error: 'l' was not declared in this scope 56 | bonus+=l; | ^ Non zero exit status: 1

Ceva nu functioneaza?