Pagini recente » Borderou de evaluare (job #2085780) | Borderou de evaluare (job #2766686) | Borderou de evaluare (job #2634948) | Borderou de evaluare (job #1601607) | Borderou de evaluare (job #2402017)
Borderou de evaluare (job #2402017)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:25:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 2; i < s.size(); ++i) {
~~^~~~~~~~~~
main.cpp:27:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = i; j < s.size(); j += i) ans[j] = '1';
~~^~~~~~~~~~
main.cpp:31:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 2; i < s.size(); ++i) {
~~^~~~~~~~~~
main.cpp:34:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = i+i; j < s.size(); j += i) if(s[j] == '1') ans[i] = '0';
~~^~~~~~~~~~
main.cpp:39:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 2; i < s.size(); ++i) cout << ans[i];
~~^~~~~~~~~~
main.cpp:9:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("ciurulet.in", "r", stdin);
^
main.cpp:10:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("ciurulet.out", "w", stdout);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | OK | 5 |
2 | 2ms | 131kb | OK | 5 |
3 | 2ms | 131kb | Incorect | 0 |
4 | 2ms | 131kb | OK | 5 |
5 | 3ms | 131kb | Incorect | 0 |
6 | 4ms | 262kb | OK | 5 |
7 | 4ms | 262kb | Incorect | 0 |
8 | 4ms | 262kb | OK | 5 |
9 | 13ms | 520kb | Incorect | 0 |
10 | 20ms | 729kb | Incorect | 0 |
11 | 63ms | 1613kb | Incorect | 0 |
12 | 79ms | 3088kb | OK | 5 |
13 | 88ms | 3219kb | OK | 5 |
14 | 97ms | 3088kb | Incorect | 0 |
15 | 92ms | 3088kb | Incorect | 0 |
16 | 102ms | 3219kb | Incorect | 0 |
17 | 99ms | 3219kb | Incorect | 0 |
18 | 136ms | 3219kb | Incorect | 0 |
19 | 132ms | 3219kb | Incorect | 0 |
20 | 92ms | 3088kb | Incorect | 0 |
Punctaj total | 35 |