Borderou de evaluare (job #1317484)
Utilizator | Data | 14 ianuarie 2015 22:20:00 | |
---|---|---|---|
Problema | Kinetic | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:22:12: error: ‘k’ does not name a type
char s[50];k
^
user.cpp: In function ‘int bs(int)’:
user.cpp:32:19: error: ‘k’ was not declared in this scope
int bs (int val) {k
^
user.cpp:33:5: error: expected ‘;’ before ‘int’
int left, right, mid, last, dist;
^
user.cpp:35:5: error: ‘left’ was not declared in this scope
left = 1;
^
user.cpp:36:5: error: ‘right’ was not declared in this scope
right = n;
^
user.cpp:37:5: error: ‘last’ was not declared in this scope
last = 0;
^
user.cpp:39:9: error: ‘mid’ was not declared in this scope
mid = (left + right) / 2;
^
user.cpp:40:9: error: ‘dist’ was not declared in this scope
dist = a[ord[mid]] + b[ord[mid]] * t;
^
user.cpp: In function ‘int main()’:
user.cpp:68:28: error: ‘cmpT’ was not declared in this scope
sort(q + 1, q + m + 1, cmpT);
^
user.cpp:55:12: warning: unused variable ‘j’ [-Wunused-variable]
int i, j, m, x, y;
^
user.cpp: In function ‘int bs(int)’:
user.cpp:50:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:53:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("kinetic.in", "r", stdin);
^
user.cpp:54:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("kinetic.out", "w", stdout);
^
user.cpp:57:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
^
user.cpp:59:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &a[i], &b[i]);
^
user.cpp:63:36: warning: ignoring return value of ‘int scanf(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 !