Borderou de evaluare (job #1433535)
Utilizator | Data | 9 mai 2015 15:29:56 | |
---|---|---|---|
Problema | Autobuz | Status | done |
Runda | test_practic_pa_2 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:35:5: error: ‘node’ was not declared in this scope
node = q.front();
^
user.cpp:43:41: error: no matching function for call to ‘std::queue<int>::push(std::pair<int, int>)’
q.push(pair<int,int>(next,fl) );
^
user.cpp:43:41: note: candidates are:
In file included from /usr/include/c++/4.8/queue:64:0,
from user.cpp:3:
/usr/include/c++/4.8/bits/stl_queue.h:212:7: note: void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >; std::queue<_Tp, _Sequence>::value_type = int]
push(const value_type& __x)
^
/usr/include/c++/4.8/bits/stl_queue.h:212:7: note: no known conversion for argument 1 from ‘std::pair<int, int>’ to ‘const value_type& {aka const int&}’
/usr/include/c++/4.8/bits/stl_queue.h:217:7: note: void std::queue<_Tp, _Sequence>::push(std::queue<_Tp, _Sequence>::value_type&&) [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >; std::queue<_Tp, _Sequence>::value_type = int]
push(value_type&& __x)
^
/usr/include/c++/4.8/bits/stl_queue.h:217:7: note: no known conversion for argument 1 from ‘std::pair<int, int>’ to ‘std::queue<int>::value_type&& {aka int&&}’
user.cpp:22:6: warning: unused variable ‘i’ [-Wunused-variable]
int i,x,y,z;
^
user.cpp:25:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d %d",&n,&m);
^
user.cpp:29: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);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !