Borderou de evaluare (job #1499643)
Utilizator | Data | 10 octombrie 2015 22:23:44 | |
---|---|---|---|
Problema | Teroristi2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:11:29: error: ‘int kill [127]’ redeclared as different kind of symbol
int who[kLimit], kill[kLimit];
^
In file included from /usr/include/c++/4.8/csignal:42:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:43,
from user.cpp:1:
/usr/include/signal.h:126:12: error: previous declaration of ‘int kill(__pid_t, int)’
extern int kill (__pid_t __pid, int __sig) __THROW;
^
user.cpp: In function ‘int main()’:
user.cpp:63:21: warning: pointer to a function used in arithmetic [-Wpointer-arith]
kill[i] |= 1 << j;
^
user.cpp:63:23: error: invalid operands of types ‘int(__pid_t, int)throw () {aka int(int, int)throw ()}’ and ‘int’ to binary ‘operator|’
kill[i] |= 1 << j;
^
user.cpp:63:23: error: in evaluation of ‘operator|=(int(__pid_t, int)throw () {aka int(int, int)throw ()}, int)’
user.cpp:68:80: warning: pointer to a function used in arithmetic [-Wpointer-arith]
const bool inConf = not(conf & (1 << i)), KilledOth = (conf & kill[i]) == kill[i];
^
user.cpp:68:80: error: invalid operands of types ‘int’ and ‘int(__pid_t, int)throw () {aka int(int, int)throw ()}’ to binary ‘operator&’
user.cpp:68:92: warning: pointer to a function used in arithmetic [-Wpointer-arith]
const bool inConf = not(conf & (1 << i)), KilledOth = (conf & kill[i]) == kill[i];
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !