Borderou de evaluare (job #1329478)
Utilizator | Data | 29 ianuarie 2015 16:02:50 | |
---|---|---|---|
Problema | GFact | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void desc(int, int)’:
user.cpp:28:31: error: no matching function for call to ‘std::vector<int>::push_back(std::vector<int>::iterator, int&)’
expp.push_back(expp.end(), q);
^
user.cpp:28:31: note: candidates are:
In file included from /usr/include/c++/4.8/vector:64:0,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_vector.h:901:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int]
push_back(const value_type& __x)
^
/usr/include/c++/4.8/bits/stl_vector.h:901:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/4.8/bits/stl_vector.h:919:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int]
push_back(value_type&& __x)
^
/usr/include/c++/4.8/bits/stl_vector.h:919:7: note: candidate expects 1 argument, 2 provided
user.cpp:11:6: warning: unused variable ‘lim’ [-Wunused-variable]
int lim, d, e;
^
user.cpp: In function ‘int main()’:
user.cpp:58:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("gfact.in", "r", stdin);
^
user.cpp:59:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("gfact.out", "w", stdout);
^
user.cpp:62:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &p, &q);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !