Pagini recente » Cod sursa (job #809124) | Cod sursa (job #1521268) | Borderou de evaluare (job #1513167) | Borderou de evaluare (job #1566656) | Borderou de evaluare (job #1202370)
Borderou de evaluare (job #1202370)
Raport evaluator
Compilare:
user.cpp: In function ‘void solve(int)’:
user.cpp:22:33: warning: unused variable ‘cnt’ [-Wunused-variable]
int smallest = n - pref[n], cnt = 0, res = 0;
^
user.cpp: In function ‘int main()’:
user.cpp:30:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("perioada2.in", "r", stdin);
^
user.cpp:31:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("perioada2.out", "w", stdout);
^
user.cpp:34:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &n);
^
user.cpp:35:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(x + 1);
^
/tmp/ccmEe9Ix.o: In function `main':
user.cpp:(.text.startup+0x67): warning: the `gets' function is dangerous and should not be used.
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
| 1 | 0ms | 264kb | OK | 10 | 10 |
| 2 | 12ms | 2704kb | OK | 10 | 10 |
| 3 | 252ms | 49088kb | OK | 10 | 10 |
| 4 | 256ms | 48988kb | OK | 10 | 30 |
| 5 | 248ms | 47628kb | OK | 10 |
| 6 | 256ms | 48996kb | OK | 10 |
| 7 | 256ms | 48996kb | OK | 10 | 40 |
| 8 | 256ms | 48988kb | OK | 10 |
| 9 | 260ms | 48988kb | OK | 10 |
| 10 | 260ms | 48996kb | OK | 10 |
| Punctaj total | 100 |