Borderou de evaluare (job #2308254)
Utilizator | Data | 26 decembrie 2018 18:42:41 | |
---|---|---|---|
Problema | Statiuni | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:34:19: error: 'int kill [222222]' redeclared as different kind of symbol
int dis[N], kill[N],p[N];
^
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:62:9: warning: pointer to a function used in arithmetic [-Wpointer-arith]
kill[u] ++;
^
main.cpp:62:11: warning: ISO C++ forbids incrementing a pointer of type 'int (*)(__pid_t, int) throw () {aka int (*)(int, int) throw ()}' [-Wpointer-arith]
kill[u] ++;
^~
main.cpp:62:11: error: lvalue required as increment operand
main.cpp:72:17: warning: pointer to a function used in arithmetic [-Wpointer-arith]
ans += (kill[i]>1);
^
main.cpp:72:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
ans += (kill[i]>1);
^
main.cpp:39:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("statiuni.in", "r", stdin);
^
main.cpp:40:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("statiuni.out", "w", stdout);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !