Borderou de evaluare (job #1569633)
Utilizator | Data | 15 ianuarie 2016 20:12:36 | |
---|---|---|---|
Problema | Cifre4 | Status | done |
Runda | Arhiva ICPC | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:17:13: error: ‘viz’ was not declared in this scope
c.push(0);viz[0]=1;
^
user.cpp:21:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (x%k==n) {
^
user.cpp:26:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ((x*10+2)%k==n) {
^
user.cpp:32:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ((x*10+3)%k==n) {
^
user.cpp:38:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ((x*10+5)%k==n) {
^
user.cpp:44:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ((x*10+7)%k==n) {
^
user.cpp:10:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cifre4.in","r",stdin);
^
user.cpp:11:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cifre4.out","w",stdout);
^
user.cpp:12:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&t);
^
user.cpp:15:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&k);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !