Borderou de evaluare (job #2150485)
Utilizator | Data | 3 martie 2018 16:28:00 | |
---|---|---|---|
Problema | Luffpar | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘node create(char)’:
user.cpp:30:17: error: ‘nod’ was not declared in this scope
arb[nod].state[i].opened=arb[nod].state[i].closed=0;
^
user.cpp:32:13: error: ‘nod’ was not declared in this scope
arb[nod].state[0].opened=1;
^
user.cpp:36:13: error: ‘nod’ was not declared in this scope
arb[nod].state[0].closed=1;
^
user.cpp:39:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:128:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(str+1);
^
In file included from /usr/include/c++/5/cstdio:42:0,
from /usr/include/x86_64-linux-gnu/c++/5/32/bits/stdc++.h:46,
from user.cpp:1:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
user.cpp:128:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(str+1);
^
In file included from /usr/include/c++/5/cstdio:42:0,
from /usr/include/x86_64-linux-gnu/c++/5/32/bits/stdc++.h:46,
from user.cpp:1:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
user.cpp:128:15: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(str+1);
^
In file included from /usr/include/c++/5/cstdio:42:0,
from /usr/include/x86_64-linux-gnu/c++/5/32/bits/stdc++.h:46,
from user.cpp:1:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
user.cpp:124:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("luffpar.in","r",stdin);
^
user.cpp:125:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("luffpar.out","w",stdout);
^
user.cpp:127:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&n);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !