Pagini recente » Cod sursa (job #392866) | Cod sursa (job #51572) | Cod sursa (job #1068554) | Cod sursa (job #1057930) | Borderou de evaluare (job #1520471)
Borderou de evaluare (job #1520471)
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void read()':
main.cpp:25:22: error: 'gets' was not declared in this scope
gets(a[i] + 1);
^
main.cpp: In function 'void write()':
main.cpp:63:15: warning: unused variable 'x' [-Wunused-variable]
int a, b, x, y, lev1, lev2, x1, y1, x2, y2, p;
^
main.cpp:63:18: warning: unused variable 'y' [-Wunused-variable]
int a, b, x, y, lev1, lev2, x1, y1, x2, y2, p;
^
main.cpp:63:21: warning: unused variable 'lev1' [-Wunused-variable]
int a, b, x, y, lev1, lev2, x1, y1, x2, y2, p;
^~~~
main.cpp:63:27: warning: unused variable 'lev2' [-Wunused-variable]
int a, b, x, y, lev1, lev2, x1, y1, x2, y2, p;
^~~~
main.cpp: In function 'void read()':
main.cpp:22:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("pirati.in", "r", stdin);
^
main.cpp:23:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d\n", &n, &m, &q);
^
main.cpp: In function 'void write()':
main.cpp:64:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("pirati.out", "w", stdout);
^
main.cpp:67:49: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d %d", &x1, &y1, &x2, &y2);
^
Non zero exit status: 1
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 544kb | OK! | 10 |
| 2 | 4ms | 832kb | OK! | 10 |
| 3 | 16ms | 1996kb | OK! | 10 |
| 4 | 44ms | 3652kb | OK! | 10 |
| 5 | 152ms | 7608kb | OK! | 10 |
| 6 | 160ms | 6604kb | OK! | 10 |
| 7 | 172ms | 7064kb | OK! | 10 |
| 8 | 192ms | 8368kb | OK! | 10 |
| 9 | 188ms | 7724kb | OK! | 10 |
| 10 | 192ms | 9184kb | OK! | 10 |
| Punctaj total | 0 |