Borderou de evaluare (job #1443463)
Utilizator | Data | 27 mai 2015 22:26:41 | |
---|---|---|---|
Problema | Senat | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:4:0: warning: ignoring #pragma option [-Wunknown-pragmas]
#pragma option -3 -f287 -O2
^
user.cpp:21:13: error: expected initializer before ‘*’ token
matrice far *d;
^
user.cpp: In function ‘void init()’:
user.cpp:26:3: error: expected primary-expression before ‘void’
(void far *)d=farmalloc(181l*181*2);
^
user.cpp:26:3: error: expected ‘)’ before ‘void’
user.cpp:31:30: error: ‘d’ was not declared in this scope
for (int j=0;j<=180;j++) (*d)[i][j]=maxim;
^
user.cpp:35:7: error: ‘i’ was not declared in this scope
for (i=1;i<=k;i++) { fscanf(f,"%d",&nr);
^
user.cpp:39:7: error: ‘i’ was not declared in this scope
for (i=1;i<=m;i++) {
^
user.cpp:42:25: error: ‘d’ was not declared in this scope
(*d)[n1][n2]=(*d)[n2][n1]=val;
^
user.cpp: In function ‘void rez()’:
user.cpp:67:25: error: ‘d’ was not declared in this scope
int val=(*d)[_f[i]][j];
^
user.cpp:68:23: error: ‘max’ was not declared in this scope
if (val<max)
^
user.cpp:103:23: error: ‘d’ was not declared in this scope
int val=(*d)[l->c][jj];
^
user.cpp:104:21: error: ‘max’ was not declared in this scope
if (val<max) add(val,fort,jj);
^
user.cpp: At global scope:
user.cpp:117:15: error: ‘::main’ must return ‘int’
void main(void)
^
user.cpp: In function ‘void init()’:
user.cpp:33:31: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d %d %d",&n,&m,&k);
^
user.cpp:35:41: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (i=1;i<=k;i++) { fscanf(f,"%d",&nr);
^
user.cpp:41:56: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d %d %d",&n1,&n2,&val);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !