Borderou de evaluare (job #1918591)
Utilizator | Data | 9 martie 2017 16:06:01 | |
---|---|---|---|
Problema | Ben | Status | done |
Runda | lasm09.03.2017 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:32:5: error: ‘fin’ was not declared in this scope
fin = fopen ( "ben.in" , "r" );
^
user.cpp:46:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j=0; j<v.size(); j++)
^
user.cpp:50:1: error: ‘fout’ was not declared in this scope
fout = fopen ("ben.out","w");
^
user.cpp:51:20: error: cannot convert ‘const char*’ to ‘FILE* {aka _IO_FILE*}’ for argument ‘1’ to ‘int fprintf(FILE*, const char*, ...)’
fprintf("%d",nr);
^
user.cpp: In function ‘void citeste(int&)’:
user.cpp:20:45: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(buff,1,DIM,stdin),poz=0;
^
user.cpp:26:45: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(buff,1,DIM,stdin),poz=0;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !