Borderou de evaluare (job #648572)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Culori4 (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 26 apr. 2022 19:13:35 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:14:11: error: 'ura rand [10001]' redeclared as different kind of entity
14 | ura rand[M];
| ^
In file included from /usr/lib/gcc/i686-pc-linux-gnu/11.2.1/include/g++-v11/cstdlib:75,
from /usr/lib/gcc/i686-pc-linux-gnu/11.2.1/include/g++-v11/ext/string_conversions.h:41,
from /usr/lib/gcc/i686-pc-linux-gnu/11.2.1/include/g++-v11/bits/basic_string.h:6608,
from /usr/lib/gcc/i686-pc-linux-gnu/11.2.1/include/g++-v11/string:55,
from /usr/lib/gcc/i686-pc-linux-gnu/11.2.1/include/g++-v11/bits/locale_classes.h:40,
from /usr/lib/gcc/i686-pc-linux-gnu/11.2.1/include/g++-v11/bits/ios_base.h:41,
from /usr/lib/gcc/i686-pc-linux-gnu/11.2.1/include/g++-v11/ios:42,
from /usr/lib/gcc/i686-pc-linux-gnu/11.2.1/include/g++-v11/ostream:38,
from /usr/lib/gcc/i686-pc-linux-gnu/11.2.1/include/g++-v11/iostream:39,
from main.cpp:1:
/usr/include/stdlib.h:453:12: note: previous declaration 'int rand()'
453 | extern int rand (void) __THROW;
| ^~~~
main.cpp: In function 'int main()':
main.cpp:29:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
29 | rand[k].lung = n;
| ^
main.cpp:29:21: error: request for member 'lung' in '*(rand + ((sizetype)k))', which is of non-class type 'int() noexcept' {aka 'int()'}
29 | rand[k].lung = n;
| ^~~~
main.cpp:30:44: warning: pointer to a function used in arithmetic [-Wpointer-arith]
30 | lung_max = max(lung_max, rand[k].lung);
| ^
main.cpp:30:46: error: request for member 'lung' in '*(rand + ((sizetype)k))', which is of non-class type 'int() noexcept' {aka 'int()'}
30 | lung_max = max(lung_max, rand[k].lung);
| ^~~~
main.cpp:33:30: warning: pointer to a function used in arithmetic [-Wpointer-arith]
33 | fin >> rand[k].a[i];
| ^
main.cpp:33:32: error: request for member 'a' in '*(rand + ((sizetype)k))', which is of non-class type 'int() noexcept' {aka 'int()'}
33 | fin >> rand[k].a[i];
| ^
main.cpp:39:22: warning: pointer to a function used in arithmetic [-Wpointer-arith]
39 | if(rand[i].lung == lung_max)
| ^
main.cpp:39:24: error: request for member 'lung' in '*(rand + ((sizetype)i))', which is of non-class type 'int() noexcept' {aka 'int()'}
39 | if(rand[i].lung == lung_max)
| ^~~~
main.cpp:44:41: warning: pointer to a function used in arithmetic [-Wpointer-arith]
44 | valid[k][j] = rand[i].a[j];
| ^
main.cpp:44:43: error: request for member 'a' in '*(rand + ((sizetype)i))', which is of non-class type 'int() noexcept' {aka 'int()'}
44 | valid[k][j] = rand[i].a[j];
| ^