Borderou de evaluare (job #2636362)
Utilizator | Data | 17 iulie 2020 17:43:36 | |
---|---|---|---|
Problema | Reteta2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:5: error: 'int time' redeclared as different kind of symbol
int time;
^~~~
In file included from /usr/include/pthread.h:24:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/6/bits/gthr.h:148,
from /usr/include/c++/6/ext/atomicity.h:35,
from /usr/include/c++/6/bits/ios_base.h:39,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from main.cpp:1:
/usr/include/time.h:192:15: note: previous declaration 'time_t time(time_t*)'
extern time_t time (time_t *__timer) __THROW;
^~~~
main.cpp: In function 'int main()':
main.cpp:13:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < s.size(); ++i) {
~~^~~~~~~~~~
main.cpp:16:57: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (s[i + 1] >= '0' && s[i + 1] <= '9' && i < s.size()) {
~~^~~~~~~~~~
main.cpp:20:57: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (s[i + 1] >= '0' && s[i + 1] <= '9' && i < s.size()) {
~~^~~~~~~~~~
main.cpp:24:21: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time += aux;
^~~
main.cpp:24:21: error: assignment of function 'time_t time(time_t*)'
main.cpp:24:21: error: cannot convert 'time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}' to 'time_t(time_t*) throw () {aka long int(long int*) throw ()}' in assignment
main.cpp:32:13: warning: the address of 'time_t time(time_t*)' will always evaluate as 'true' [-Waddress]
fout << time;
^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !