Borderou de evaluare (job #2284788)
Utilizator | Data | 17 noiembrie 2018 16:22:08 | |
---|---|---|---|
Problema | Zalmoxis | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:54:5: error: 'vector' was not declared in this scope
vector<int> secv = {v[i].first};
^~~~~~
main.cpp:54:12: error: expected primary-expression before 'int'
vector<int> secv = {v[i].first};
^~~
main.cpp:56:16: error: 'secv' was not declared in this scope
while((int)secv.size() < k + 1){
^~~~
main.cpp:57:13: error: expected primary-expression before 'int'
vector<int> nsecv;
^~~
main.cpp:59:42: error: 'nsecv' was not declared in this scope
if((int)secv.size() - i + 1 + (int)nsecv.size() <= k + 1){
^~~~~
main.cpp:67:13: error: 'nsecv' was not declared in this scope
secv = nsecv;
^~~~~
main.cpp:70:17: error: 'secv' was not declared in this scope
for(auto it:secv){
^~~~
main.cpp:16:25: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d %d",&n,&k);
^
main.cpp:20:22: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",&val);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !