Borderou de evaluare (job #2441457)
Utilizator | Data | 20 iulie 2019 15:10:58 | |
---|---|---|---|
Problema | Niciomare | Status | done |
Runda | Algoritmiada 2019 Runda Maraton | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:21:5: error: 'vector' does not name a type
vector<pair<long long,long long> > lines;
^~~~~~
main.cpp: In constructor 'cht_t::cht_t()':
main.cpp:26:9: error: 'lines' was not declared in this scope
lines.clear();
^~~~~
main.cpp: In member function 'void cht_t::clear()':
main.cpp:30:9: error: 'lines' was not declared in this scope
lines.clear();
^~~~~
main.cpp: In member function 'void cht_t::add(const std::pair<long long int, long long int>&)':
main.cpp:35:32: error: 'lines' was not declared in this scope
while(sz > 1 && double(lines[sz - 1].second - lines[sz - 2].second) / (lines[sz - 2].first - lines[sz - 1].first) <= double(line.second - lines[sz - 1].second) / (lines[sz - 1].first - line.first)){
^~~~~
main.cpp:39:9: error: 'lines' was not declared in this scope
lines.push_back(line);
^~~~~
main.cpp: In member function 'long long int cht_t::query(long long int)':
main.cpp:48:23: error: 'lines' was not declared in this scope
if(double(lines[mid + 1].second - lines[mid].second) / (lines[mid].first - lines[mid + 1].first) < x){
^~~~~
main.cpp:55:20: error: 'lines' was not declared in this scope
return max(lines[st].first * x + lines[st].second,lines[dr].first * x + lines[dr].second);
^~~~~
main.cpp: In function 'int main()':
main.cpp:91:34: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d %d %d",&n,&k,&s);
^
main.cpp:94:29: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",&v[i]);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !