Borderou de evaluare (job #2128287)
Utilizator | Data | 11 februarie 2018 16:42:03 | |
---|---|---|---|
Problema | Ninjago | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:27:63: error: ISO C++ forbids declaration of ‘setMuchie’ with no type [-fpermissive]
setMuchie(int _nrE, int _cost, int _start, int _destinatie){
^
user.cpp: In member function ‘int Muchie::setMuchie(int, int, int, int)’:
user.cpp:32:5: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘void citire()’:
user.cpp:136:48: warning: format ‘%s’ expects argument of type ‘char*’, but argument 4 has type ‘char (*)[10]’ [-Wformat=]
scanf("%d %d %s\n", &tmp1, &tmp2, &tmp3);
^
user.cpp:129:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &t);
^
user.cpp:130:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n", &n, &m);
^
user.cpp:136:49: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %s\n", &tmp1, &tmp2, &tmp3);
^
user.cpp: In function ‘int main()’:
user.cpp:205:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ninjago.in", "r", stdin);
^
user.cpp:206:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ninjago.out", "w", stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !