Borderou de evaluare (job #2860669)
Utilizator | Data | 2 martie 2022 21:57:43 | |
---|---|---|---|
Problema | Ferma3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:38: error: 'int clone [405][405]' redeclared as different kind of entity
10 | int mat[NMAX][NMAX], clone[NMAX][NMAX];
| ^
In file included from /usr/include/sched.h:43,
from /usr/include/pthread.h:22,
from /usr/include/x86_64-linux-gnu/c++/10/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/10/bits/gthr.h:148,
from /usr/include/c++/10/ext/atomicity.h:35,
from /usr/include/c++/10/bits/ios_base.h:39,
from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/x86_64-linux-gnu/bits/sched.h:82:12: note: previous declaration 'int clone(int (*)(void*), void*, int, void*, ...)'
82 | extern int clone (int (*__fn) (void *__arg), void *__child_stack,
| ^~~~~
main.cpp: In function 'bool Appeareance(int, int)':
main.cpp:32:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
32 | if(clone[x][y] == 0)
| ^
main.cpp:32:18: warning: pointer to a function used in arithmetic [-Wpointer-arith]
32 | if(clone[x][y] == 0)
| ^
main.cpp: In function 'int FillAlg(int (*)[405], int, int, int, int)':
main.cpp:42:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
42 | if(clone[x][y] == 1)
| ^
main.cpp:42:18: warning: pointer to a function used in arithmetic [-Wpointer-arith]
42 | if(clone[x][y] == 1)
| ^
main.cpp:42:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
42 | if(clone[x][y] == 1)
| ~~~~~~~~~~~~^~~~
main.cpp:50:12: warning: pointer to a function used in arithmetic [-Wpointer-arith]
50 | clone[x][y] = 1;
| ^
main.cpp:50:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
50 | clone[x][y] = 1;
| ^
main.cpp:50:17: error: assignment of read-only location '*(clone + (((sizetype)x) + ((sizetype)y)))'
50 | clone[x][y] = 1;
| ~~~~~~~~~~~~^~~
main.cpp:55:12: warning: control reaches end of non-void function [-Wreturn-type]
55 | FillAlg(mat, x, y-1, val, area);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !