Borderou de evaluare (job #2409263)
Utilizator | Data | 18 aprilie 2019 20:43:08 | |
---|---|---|---|
Problema | Tri2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void normalize(point*)':
main.cpp:73:5: error: 'vector' was not declared in this scope
vector<int> xs, ys;
^~~~~~
main.cpp:73:12: error: expected primary-expression before 'int'
vector<int> xs, ys;
^~~
main.cpp:76:9: error: 'xs' was not declared in this scope
xs.push_back(v[i].x);
^~
main.cpp:77:9: error: 'ys' was not declared in this scope
ys.push_back(v[i].y);
^~
main.cpp:79:10: error: 'xs' was not declared in this scope
sort(xs.begin(), xs.end());
^~
main.cpp:80:10: error: 'ys' was not declared in this scope
sort(ys.begin(), ys.end());
^~
main.cpp: In function 'int main()':
main.cpp:90:22: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",&n);
^
main.cpp:94:31: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d%d",&x,&y);
^
main.cpp:133:22: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",&m);
^
main.cpp:137:36: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d%d%d",&x,&y,&z);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !