Borderou de evaluare (job #1225291)
Utilizator | Data | 2 septembrie 2014 13:25:23 | |
---|---|---|---|
Problema | Stramosi | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void dfs(int)’:
user.cpp:38:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < A[t].size(); ++i) {
^
user.cpp:41:17: error: no match for ‘operator=’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<nod> >::value_type {aka nod}’ and ‘int’)
A[t][i] = 0;
^
user.cpp:41:17: note: candidates are:
user.cpp:7:8: note: nod& nod::operator=(const nod&)
struct nod{
^
user.cpp:7:8: note: no known conversion for argument 1 from ‘int’ to ‘const nod&’
user.cpp:7:8: note: nod& nod::operator=(nod&&)
user.cpp:7:8: note: no known conversion for argument 1 from ‘int’ to ‘nod&&’
user.cpp:39:13: warning: unused variable ‘p’ [-Wunused-variable]
int p = b.size() - A[t][i].question - 1;
^
user.cpp:45:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < a[t].size(); ++i)
^
user.cpp: In function ‘void read()’:
user.cpp:21:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d ", &n, &m);
^
user.cpp:24:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ", &x);
^
user.cpp:31:41: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d ", &node[i], &k[i]);
^
user.cpp: In function ‘int main()’:
user.cpp:59:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("stramosi.in", "r", stdin);
^
user.cpp:60:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("stramosi.out", "w", stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !