Borderou de evaluare (job #1650164)
Utilizator | Data | 11 martie 2016 16:56:00 | |
---|---|---|---|
Problema | Lanterna | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void BF(int)’:
user.cpp:37:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0 ;i<lista[aux].size();i++)
^
user.cpp:54:16: error: invalid operands of types ‘FILE* {aka _IO_FILE*}’ and ‘int’ to binary ‘operator<<’
g<<durata[n]<<' '<<1-baterie[n];
^
user.cpp: In function ‘int main()’:
user.cpp:66:27: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d%d",&n,&k);
^
user.cpp:68:35: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",&prieten[i]);
^
user.cpp:69:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",&m);
^
user.cpp:74:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",&x);
^
user.cpp:75:54: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d%d%d",&aux.y,&aux.timp,&aux.wati);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !