Borderou de evaluare (job #2183514)
Utilizator | Calin-Stefan Georgescu borscalin | Data | 23 martie 2018 11:07:46 |
---|---|---|---|
Problema | Okcpp | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:16:47: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 5 has type ‘int*’ [-Wformat=]
fscanf(fin, "%d%d%lld%lld", &c, &k, &p, &a);
^
user.cpp:19:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
fscanf(fin, "%d", &b);
^
user.cpp:28:32: error: ‘sort’ was not declared in this scope
sort(f, f + 10, cmp);
^
user.cpp:28:32: note: suggested alternative:
In file included from /usr/include/c++/6/algorithm:62:0,
from user.cpp:3:
/usr/include/c++/6/bits/stl_algo.h:4727:5: note: ‘std::sort’
sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
^~~~
user.cpp:50:32: error: ‘sort’ was not declared in this scope
sort(f, f + 10, cmp);
^
user.cpp:50:32: note: suggested alternative:
In file included from /usr/include/c++/6/algorithm:62:0,
from user.cpp:3:
/usr/include/c++/6/bits/stl_algo.h:4727:5: note: ‘std::sort’
sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
^~~~
user.cpp:16:48: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d%d%lld%lld", &c, &k, &p, &a);
^
user.cpp:19:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", &b);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !