Borderou de evaluare (job #1825456)
Utilizator | Data | 9 decembrie 2016 10:43:42 | |
---|---|---|---|
Problema | Char | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:15:22: error: ‘ws’ was not declared in this scope
scanf("%d%d",&n,&ws);
^
user.cpp:16:13: error: too many arguments to function ‘char* gets(char*)’
gets(s,n);
^
In file included from /usr/include/stdio.h:934:0,
from /usr/include/c++/4.8/cstdio:42,
from user.cpp:1:
/usr/include/i386-linux-gnu/bits/stdio2.h:226:1: note: declared here
gets (char *__str)
^
user.cpp:43:21: error: expected primary-expression before ‘%’ token
printf("%d\n%d",%)
^
user.cpp:43:22: error: expected primary-expression before ‘)’ token
printf("%d\n%d",%)
^
user.cpp:44:5: error: expected ‘;’ before ‘g’
g<<cnt<<"\n"<<ap;
^
user.cpp:12:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("char.in","r",stdin);
^
user.cpp:13:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("char.out","w",stdout);
^
user.cpp:16:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s,n);
^
user.cpp:17:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&h);
^
user.cpp:22:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&dist);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !