Borderou de evaluare (job #1518778)
Utilizator | Data | 6 noiembrie 2015 14:03:18 | |
---|---|---|---|
Problema | Ecuatii 2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:8: error: expected constructor, destructor, or type conversion before ‘(’ token
freopen("ecuatii2.in","r",stdin);
^
user.cpp:6:8: error: expected constructor, destructor, or type conversion before ‘(’ token
freopen("ecuatii2.out","w",stdout);
^
user.cpp: In function ‘int main()’:
user.cpp:12:1: error: ‘f’ was not declared in this scope
f>>n;
^
user.cpp:33:47: error: cannot convert ‘const char*’ to ‘FILE* {aka _IO_FILE*}’ for argument ‘1’ to ‘int fprintf(FILE*, const char*, ...)’
if(sx!=0) fprintf("%.4f\n",double(suma/sx));
^
user.cpp:11:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
{scanf("%d",&n);
^
user.cpp:14:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
{ scanf("%s",s);lg=strlen(s);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !