Borderou de evaluare (job #1522182)
Utilizator | Data | 11 noiembrie 2015 12:36:45 | |
---|---|---|---|
Problema | Spirala | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:4:12: warning: ISO C99 requires whitespace after the macro name [enabled by default]
#define INF=1000000000;
^
user.cpp: In function ‘int main()’:
user.cpp:19:13: error: ‘out’ was not declared in this scope
out<<"NU\n"<<u<<" "<<a[lin][col];
^
user.cpp:4:12: error: expected primary-expression before ‘=’ token
#define INF=1000000000;
^
user.cpp:23:21: note: in expansion of macro ‘INF’
a[lin][col]=INF;
^
user.cpp:24:17: error: ‘dlin’ was not declared in this scope
if(a[lin+dlin[d]][col+dcol[d]]==INF)d=(d+1
^
user.cpp:24:22: error: ‘d’ was not declared in this scope
if(a[lin+dlin[d]][col+dcol[d]]==INF)d=(d+1
^
user.cpp:24:30: error: ‘dcol’ was not declared in this scope
if(a[lin+dlin[d]][col+dcol[d]]==INF)d=(d+1
^
user.cpp:4:12: error: expected primary-expression before ‘=’ token
#define INF=1000000000;
^
user.cpp:24:40: note: in expansion of macro ‘INF’
if(a[lin+dlin[d]][col+dcol[d]]==INF)d=(d+1
^
user.cpp:4:23: error: expected ‘)’ before ‘;’ token
#define INF=1000000000;
^
user.cpp:24:40: note: in expansion of macro ‘INF’
if(a[lin+dlin[d]][col+dcol[d]]==INF)d=(d+1
^
user.cpp:24:43: error: expected primary-expression before ‘)’ token
if(a[lin+dlin[d]][col+dcol[d]]==INF)d=(d+1
^
user.cpp:24:43: error: expected ‘;’ before ‘)’ token
user.cpp:7:29: warning: unused variable ‘k’ [-Wunused-variable]
int a[101][101],m,n,i,j,k,dif,ok,x,r,lin,col,u=0;
^
user.cpp:7:35: warning: unused variable ‘ok’ [-Wunused-variable]
int a[101][101],m,n,i,j,k,dif,ok,x,r,lin,col,u=0;
^
user.cpp:7:38: warning: unused variable ‘x’ [-Wunused-variable]
int a[101][101],m,n,i,j,k,dif,ok,x,r,lin,col,u=0;
^
user.cpp:7:40: warning: unused variable ‘r’ [-Wunused-variable]
int a[101][101],m,n,i,j,k,dif,ok,x,r,lin,col,u=0;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !