Borderou de evaluare (job #3227018)
Utilizator | Data | 24 aprilie 2024 10:24:32 | |
---|---|---|---|
Problema | A+B | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:5: error: 'int y1' redeclared as different kind of entity
5 | int y1;
| ^~
In file included from /usr/include/features.h:490,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/os_defines.h:39,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/c++config.h:655,
from /usr/include/c++/12.2.1/cassert:43,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:33,
from main.cpp:1:
/usr/include/bits/mathcalls.h:224:1: note: previous declaration 'double y1(double)'
224 | __MATHCALL (y1,, (_Mdouble_));
| ^~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:9:12: error: assignment of function 'double y1(double)'
9 | y1 = 13;
| ~~~^~~~
main.cpp:10:17: warning: the address of 'double y1(double)' will never be NULL [-Waddress]
10 | cout << y1 << '\n';
| ^~
/usr/include/bits/mathcalls.h:224:1: note: 'double y1(double)' declared here
224 | __MATHCALL (y1,, (_Mdouble_));
| ^~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !