Borderou de evaluare (job #2447848)
Utilizator | Data | 14 august 2019 21:43:57 | |
---|---|---|---|
Problema | Paintball | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void dfs(int)':
main.cpp:12:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0; j < v[nod].size(); ++j)
~~^~~~~~~~~~~~~~~
main.cpp: In function 'void dfs2(int)':
main.cpp:22:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0; j < tr[nod].size(); ++j)
~~^~~~~~~~~~~~~~~~
main.cpp: At global scope:
main.cpp:28:18: error: 'bool kill [1000002]' redeclared as different kind of symbol
bool kill[1000002], skip[1000002];
^
In file included from /usr/include/c++/6/csignal:42:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:43,
from main.cpp:1:
/usr/include/signal.h:127:12: note: previous declaration 'int kill(__pid_t, int)'
extern int kill (__pid_t __pid, int __sig) __THROW;
^~~~
main.cpp: In function 'int main()':
main.cpp:52:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0; j < cc[i].size(); ++j)
~~^~~~~~~~~~~~~~
main.cpp:63:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0; j < cc[i].size(); j += 2)
~~^~~~~~~~~~~~~~
main.cpp:67:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 1; j < cc[i].size(); j += 2)
~~^~~~~~~~~~~~~~
main.cpp:71:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = position; j < cc[i].size(); j += 2)
~~^~~~~~~~~~~~~~
main.cpp:72:34: warning: pointer to a function used in arithmetic [-Wpointer-arith]
kill[cc[i][j]] = 1;
^
main.cpp:72:38: error: assignment of read-only location '*(kill + ((sizetype)cc[i].std::vector<_Tp, _Alloc>::operator[]<int, std::allocator<int> >(((std::vector<int>::size_type)j))))'
kill[cc[i][j]] = 1;
^
main.cpp:72:38: error: cannot convert 'int' to 'int(__pid_t, int) throw () {aka int(int, int) throw ()}' in assignment
main.cpp:80:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0; j < cc[i].size(); j += 2)
~~^~~~~~~~~~~~~~
main.cpp:84:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int start = 2; start < cc[i].size(); start += 2)
~~~~~~^~~~~~~~~~~~~~
main.cpp:88:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(lst >= cc[i].size())
~~~~^~~~~~~~~~~~~~~
main.cpp:96:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 1; j < cc[i].size(); j += 2)
~~^~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !