Borderou de evaluare (job #3185296)
Utilizator | Data | 18 decembrie 2023 17:55:56 | |
---|---|---|---|
Problema | GFact | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:7: error: expected unqualified-id before ',' token
9 | ll,np;
| ^
main.cpp:14:1: error: reference to 'data' is ambiguous
14 | data d[50];
| ^~~~
In file included from /usr/include/c++/12.2.1/string:52,
from /usr/include/c++/12.2.1/bits/locale_classes.h:40,
from /usr/include/c++/12.2.1/bits/ios_base.h:41,
from /usr/include/c++/12.2.1/ios:42,
from /usr/include/c++/12.2.1/istream:38,
from /usr/include/c++/12.2.1/fstream:38,
from main.cpp:4:
/usr/include/c++/12.2.1/bits/range_access.h:343:5: note: candidates are: 'template<class _Tp> constexpr const _Tp* std::data(initializer_list<_Tp>)'
343 | data(initializer_list<_Tp> __il) noexcept
| ^~~~
/usr/include/c++/12.2.1/bits/range_access.h:333:5: note: 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])'
333 | data(_Tp (&__array)[_Nm]) noexcept
| ^~~~
/usr/include/c++/12.2.1/bits/range_access.h:322:5: note: 'template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)'
322 | data(const _Container& __cont) noexcept(noexcept(__cont.data()))
| ^~~~
/usr/include/c++/12.2.1/bits/range_access.h:311:5: note: 'template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)'
311 | data(_Container& __cont) noexcept(noexcept(__cont.data()))
| ^~~~
main.cpp:10:2: note: 'typedef struct data data'
10 | }data;
| ^~~~
main.cpp: In function 'void generare()':
main.cpp:20:6: error: 'memset' was not declared in this scope
20 | memset(pr,0,sizeof(pr));
| ^~~~~~
main.cpp:5:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
4 | #include <fstream>
+++ |+#include <cstring>
5 | FILE *fin=fopen("gfact.in","r"),
main.cpp: In function 'void descompune()':
main.cpp:40:12: error: 'd' was not declared in this scope
40 | memset(d,0,sizeof(d));
| ^
main.cpp:40:5: error: 'memset' was not declared in this scope
40 | memset(d,0,sizeof(d));
| ^~~~~~
main.cpp:40:5: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
main.cpp: In function 'void cautafact()':
main.cpp:71:15: error: 'd' was not declared in this scope
71 | li=1; lf=d[i].p;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !