Borderou de evaluare (job #1095673)
Utilizator | Data | 31 ianuarie 2014 17:33:23 | |
---|---|---|---|
Problema | Barbar | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:5: error: ‘poz exit’ redeclared as different kind of symbol
poz exit, intr;
^
In file included from /usr/local/include/c++/4.8.0/cstdlib:72:0,
from /usr/local/include/c++/4.8.0/ext/string_conversions.h:41,
from /usr/local/include/c++/4.8.0/bits/basic_string.h:2817,
from /usr/local/include/c++/4.8.0/string:52,
from /usr/local/include/c++/4.8.0/bits/locale_classes.h:40,
from /usr/local/include/c++/4.8.0/bits/ios_base.h:41,
from /usr/local/include/c++/4.8.0/ios:42,
from /usr/local/include/c++/4.8.0/istream:38,
from /usr/local/include/c++/4.8.0/fstream:38,
from user.cpp:1:
/usr/include/stdlib.h:543:13: error: previous declaration of ‘void exit(int)’
extern void exit (int __status) __THROW __attribute__ ((__noreturn__));
^
user.cpp: In function ‘bool check(int)’:
user.cpp:40:19: error: request for member ‘l’ in ‘exit’, which is of non-class type ‘void(int)throw ()’
return w[exit.l][exit.c];
^
user.cpp:40:27: error: request for member ‘c’ in ‘exit’, which is of non-class type ‘void(int)throw ()’
return w[exit.l][exit.c];
^
user.cpp: In function ‘int main()’:
user.cpp:65:22: error: request for member ‘l’ in ‘exit’, which is of non-class type ‘void(int)throw ()’
exit.l = i;
^
user.cpp:66:22: error: request for member ‘c’ in ‘exit’, which is of non-class type ‘void(int)throw ()’
exit.c = j;
^
user.cpp:93:18: error: request for member ‘l’ in ‘exit’, which is of non-class type ‘void(int)throw ()’
lim = d[exit.l][exit.c]<d[intr.l][intr.c]?d[exit.l][exit.c]:d[intr.l][intr.c];
^
user.cpp:93:26: error: request for member ‘c’ in ‘exit’, which is of non-class type ‘void(int)throw ()’
lim = d[exit.l][exit.c]<d[intr.l][intr.c]?d[exit.l][exit.c]:d[intr.l][intr.c];
^
user.cpp:93:54: error: request for member ‘l’ in ‘exit’, which is of non-class type ‘void(int)throw ()’
lim = d[exit.l][exit.c]<d[intr.l][intr.c]?d[exit.l][exit.c]:d[intr.l][intr.c];
^
user.cpp:93:62: error: request for member ‘c’ in ‘exit’, which is of non-class type ‘void(int)throw ()’
lim = d[exit.l][exit.c]<d[intr.l][intr.c]?d[exit.l][exit.c]:d[intr.l][intr.c];
^
user.cpp: In function ‘bool check(int)’:
user.cpp:41:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !