Borderou de evaluare (job #2957758)
Utilizator | Data | 23 decembrie 2022 14:19:52 | |
---|---|---|---|
Problema | Tris | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:8: error: 'int y1' redeclared as different kind of entity
9 | int x1,y1,x2,y2;
| ^~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/10/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/c++config.h:522,
from /usr/include/c++/10/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
from main.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:221:1: note: previous declaration 'double y1(double)'
221 | __MATHCALL (y1,, (_Mdouble_));
| ^~~~~~~~~~
main.cpp: In function 'void walk()':
main.cpp:40:21: warning: pointer to a function used in arithmetic [-Wpointer-arith]
40 | v[x1][y1-1]=piece;
| ~~^~
main.cpp:40:18: error: invalid types 'int [1605][double (*)(double) throw () {aka double (*)(double)}]' for array subscript
40 | v[x1][y1-1]=piece;
| ^
main.cpp:41:21: warning: pointer to a function used in arithmetic [-Wpointer-arith]
41 | v[x1][y1-2]=piece;
| ~~^~
main.cpp:41:18: error: invalid types 'int [1605][double (*)(double) throw () {aka double (*)(double)}]' for array subscript
41 | v[x1][y1-2]=piece;
| ^
main.cpp:42:21: warning: pointer to a function used in arithmetic [-Wpointer-arith]
42 | v[x1][y1-3]=piece;
| ~~^~
main.cpp:42:18: error: invalid types 'int [1605][double (*)(double) throw () {aka double (*)(double)}]' for array subscript
42 | v[x1][y1-3]=piece;
| ^
main.cpp:47:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
47 | y1-=3;
| ~~^~~
main.cpp:47:15: error: assignment of read-only location 'y1'
main.cpp:55:21: warning: pointer to a function used in arithmetic [-Wpointer-arith]
55 | v[x1][y1-1]=piece;
| ~~^~
main.cpp:55:18: error: invalid types 'int [1605][double (*)(double) throw () {aka double (*)(double)}]' for array subscript
55 | v[x1][y1-1]=piece;
| ^
main.cpp:56:21: warning: pointer to a function used in arithmetic [-Wpointer-arith]
56 | v[x1][y1-2]=piece;
| ~~^~
main.cpp:56:18: error: invalid types 'int [1605][double (*)(double) throw () {aka double (*)(double)}]' for array subscript
56 | v[x1][y1-2]=piece;
| ^
main.cpp:60:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
60 | y1-=2;
| ~~^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !