Borderou de evaluare (job #596785)

Utilizator avatar Max_Calincu Max Calincu Max_Calincu IP ascuns
Problemă Meteor (clasa a 8-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 22 apr. 2021 16:56:27 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:16:50: error: 'bool kill [500]' redeclared as different kind of entity 16 | ll n, m, bmax[500]; bool u, b[500][500], kill[500]; | ^ In file included from /usr/lib/gcc/i686-pc-linux-gnu/10.2.0/include/g++-v10/csignal:42, from /usr/lib/gcc/i686-pc-linux-gnu/10.2.0/include/g++-v10/i686-pc-linux-gnu/bits/stdc++.h:43, from main.cpp:1: /usr/include/signal.h:112:12: note: previous declaration 'int kill(__pid_t, int)' 112 | extern int kill (__pid_t __pid, int __sig) __THROW; | ^~~~ main.cpp: In function 'int getmax()': main.cpp:25:12: warning: pointer to a function used in arithmetic [-Wpointer-arith] 25 | if(kill[i]) continue; | ^ main.cpp: In function 'void delet(int)': main.cpp:36:12: warning: pointer to a function used in arithmetic [-Wpointer-arith] 36 | if(kill[i]) continue; | ^ main.cpp: In function 'int main()': main.cpp:53:9: warning: pointer to a function used in arithmetic [-Wpointer-arith] 53 | kill[i]=0; | ^ main.cpp:53:10: error: assignment of read-only location '*(kill + ((sizetype)i))' 53 | kill[i]=0; | ~~~~~~~^~ main.cpp:74:9: warning: pointer to a function used in arithmetic [-Wpointer-arith] 74 | kill[o]=1; | ^ main.cpp:74:10: error: assignment of read-only location '*(kill + ((sizetype)o))' 74 | kill[o]=1; | ~~~~~~~^~