Borderou de evaluare (job #2008445)
Utilizator | Data | 6 august 2017 16:06:55 | |
---|---|---|---|
Problema | AI | 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:55:17: error: ‘INT_MAX’ was not declared in this scope
int x,y,r11=INT_MAX,r12=INT_MAX,r21=INT_MAX,r22=INT_MAX;
^
user.cpp:71:45: error: ‘INT_MIN’ was not declared in this scope
a[0][i]=a[n+1][i]=a[i][0]=a[i][n+1]=INT_MIN;
^
user.cpp:135:11: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if(a[i][j]==111)
^
user.cpp:140:26: error: ‘r12’ was not declared in this scope
if(viz[i][j]<r12)
^
user.cpp:139:11: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if(a[i][j]==222)
^
user.cpp:151:13: error: ‘r21’ was not declared in this scope
r21=viz[i][j]-1;
^
user.cpp:149:11: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if(a[i][j]==111)
^
user.cpp:154:26: error: ‘r12’ was not declared in this scope
if(viz[i][j]<r12)
^
user.cpp:155:13: error: ‘r22’ was not declared in this scope
r22=viz[i][j]-1;
^
user.cpp:153:11: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if(a[i][j]==222)
^
user.cpp:159:12: error: ‘r22’ was not declared in this scope
if(r11>r22)
^
user.cpp:163:8: error: ‘r12’ was not declared in this scope
if(r12>r21)
^
user.cpp:163:12: error: ‘r21’ was not declared in this scope
if(r12>r21)
^
user.cpp:58:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d",&n);
^
user.cpp:59:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d %d",&x,&y);
^
user.cpp:61:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d %d",&x,&y);
^
user.cpp:63:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !