Borderou de evaluare (job #1738020)
Utilizator | Data | 5 august 2016 15:56:24 | |
---|---|---|---|
Problema | Sortari | 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:31:34: error: expected ‘;’ before ‘ok’
for(i = 0;i <= 10000 ok == true;i++){
^
user.cpp:31:37: warning: for increment expression has no effect [-Wunused-value]
for(i = 0;i <= 10000 ok == true;i++){
^
user.cpp:31:44: error: expected ‘)’ before ‘;’ token
for(i = 0;i <= 10000 ok == true;i++){
^
user.cpp:31:48: error: expected ‘;’ before ‘)’ token
for(i = 0;i <= 10000 ok == true;i++){
^
user.cpp:74:1: error: expected ‘}’ at end of input
}
^
user.cpp:74:1: error: expected ‘}’ at end of input
user.cpp:12:24: warning: unused variable ‘j’ [-Wunused-variable]
int limit,T,test,i,j,n,m,x,y,ax;
^
user.cpp:12:30: warning: unused variable ‘x’ [-Wunused-variable]
int limit,T,test,i,j,n,m,x,y,ax;
^
user.cpp:12:32: warning: unused variable ‘y’ [-Wunused-variable]
int limit,T,test,i,j,n,m,x,y,ax;
^
user.cpp:12:34: warning: unused variable ‘ax’ [-Wunused-variable]
int limit,T,test,i,j,n,m,x,y,ax;
^
user.cpp:74:1: error: expected ‘}’ at end of input
}
^
user.cpp:13:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sortari.in", "r", stdin);
^
user.cpp:14:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sortari.out", "w", stdout);
^
user.cpp:15:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&T);
^
user.cpp:22:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n, &m);
^
user.cpp:24:43: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &v1[i], &v2[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !