Pagini recente » Borderou de evaluare (job #1363607) | Cod sursa (job #1752535) | Borderou de evaluare (job #1424998) | Borderou de evaluare (job #1716594) | Borderou de evaluare (job #1308127)
Borderou de evaluare (job #1308127)
Raport evaluator
Compilare:
user.cpp: In function ‘void sdo(int, int, int)’:
user.cpp:14:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(m[i]<x)
^
user.cpp:19:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(m[i]>x)
^
user.cpp:24:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(m[i]==x)
^
user.cpp: In function ‘int main()’:
user.cpp:49:27: warning: format ‘%u’ expects argument of type ‘unsigned int*’, but argument 2 has type ‘long unsigned int*’ [-Wformat=]
scanf("%u ", &m[i]);
^
user.cpp:51:22: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
printf("%d", m[k]);
^
user.cpp:43:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sdo.in", "r", stdin);
^
user.cpp:44:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sdo.out", "w", stdout);
^
user.cpp:45:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d ", &n, &k);
^
user.cpp:49:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%u ", &m[i]);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
| 1 | 0ms | 268kb | OK | 10 | 10 |
| 2 | 32ms | 1048kb | OK | 10 | 10 |
| 3 | 20ms | 960kb | OK | 10 | 10 |
| 4 | 28ms | 1020kb | OK | 10 | 10 |
| 5 | 52ms | 1444kb | OK | 10 | 10 |
| 6 | 888ms | 19804kb | OK | 10 | 10 |
| 7 | 844ms | 19800kb | OK | 10 | 10 |
| 8 | 892ms | 24300kb | OK | 10 | 30 |
| 9 | 1012ms | 28140kb | OK | 10 |
| 10 | 1016ms | 23700kb | OK | 10 |
| Punctaj total | 100 |