Pagini recente » Cod sursa (job #241098) | Cod sursa (job #2190225) | Cod sursa (job #3270510) | Statistici Elena Radulescu (elena_radulescu) | Borderou de evaluare (job #2250961)
Borderou de evaluare (job #2250961)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:41:16: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[500]’ [-Wformat=]
scanf("%s", &s);
^
user.cpp:43:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < strlen(s); ++i) {
~~^~~~~~~~~~~
user.cpp:34:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cod2.in", "r", stdin);
^
user.cpp:35:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cod2.out", "w", stdout);
^
user.cpp:40:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &n);
^
user.cpp:41:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", &s);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 876kb | Incorect | 0 |
| 2 | Depăşit | 808kb | Time limit exceeded. | 0 |
| 3 | Depăşit | 880kb | Time limit exceeded. | 0 |
| 4 | Depăşit | 800kb | Time limit exceeded. | 0 |
| 5 | Depăşit | 876kb | Time limit exceeded. | 0 |
| 6 | Depăşit | 936kb | Time limit exceeded. | 0 |
| 7 | Depăşit | 856kb | Time limit exceeded. | 0 |
| 8 | Depăşit | 796kb | Time limit exceeded. | 0 |
| 9 | Depăşit | 808kb | Time limit exceeded. | 0 |
| 10 | 0ms | 756kb | Incorect | 0 |
| Punctaj total | 0 |