Borderou de evaluare (job #1231106)
Utilizator | Data | 19 septembrie 2014 15:52:27 | |
---|---|---|---|
Problema | Alee | Status | done |
Runda | Teme Pregatire ACM Unibuc 2013 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:17:13: error: ‘j’ was not declared in this scope
for(j=0;j<=n+1;j++)
^
user.cpp:22:14: warning: right operand of comma operator has no effect [-Wunused-value]
for(i=0,i<m;i++)
^
user.cpp:22:20: error: expected ‘;’ before ‘)’ token
for(i=0,i<m;i++)
^
user.cpp:23:46: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=]
fscanf(f1,"%d %d",&obs[i].x,&obs[i].y);
^
user.cpp:23:46: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=]
user.cpp:25:54: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=]
fscanf(f1,"%d %d %d %d",&st.x,&st.y,&fin.x,&fin.y);
^
user.cpp:25:54: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘short int*’ [-Wformat=]
user.cpp:25:54: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘short int*’ [-Wformat=]
user.cpp:25:54: warning: format ‘%d’ expects argument of type ‘int*’, but argument 6 has type ‘short int*’ [-Wformat=]
user.cpp:32:16: error: expected primary-expression before ‘)’ token
if()
^
user.cpp:33:9: error: expected primary-expression before ‘}’ token
}
^
user.cpp:33:9: error: expected ‘;’ before ‘}’ token
user.cpp:13:29: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f1,"%d %d",&n,&m);
^
user.cpp:23:47: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f1,"%d %d",&obs[i].x,&obs[i].y);
^
user.cpp:25:55: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f1,"%d %d %d %d",&st.x,&st.y,&fin.x,&fin.y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !