Pagini recente » Borderou de evaluare (job #500700) | Borderou de evaluare (job #2146325) | Borderou de evaluare (job #2990681) | Borderou de evaluare (job #1782971) | Borderou de evaluare (job #2395679)
Borderou de evaluare (job #2395679)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:11:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i = 4; i <= b; i = i + 2)
^~~
main.cpp:13:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for (int i = 3; i * i <= b; i = i + 2)
^~~
main.cpp:6:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("difprim.in","r",stdin);
^
main.cpp:7:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("difprim.out","w",stdout);
^
main.cpp:9:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &a, &b);
^
main.cpp:8:15: warning: 'n1' may be used uninitialized in this function [-Wmaybe-uninitialized]
int a, b, n1, n2, ans = 0, max1, max2;
^~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | OK | 10 |
2 | 2ms | 131kb | OK | 10 |
3 | 2ms | 131kb | OK | 10 |
4 | 3ms | 262kb | OK | 10 |
5 | 39ms | 2097kb | OK | 10 |
6 | 265ms | 7995kb | OK | 10 |
7 | 305ms | 9175kb | OK | 10 |
8 | 130ms | 4063kb | OK | 10 |
9 | 287ms | 8257kb | OK | 10 |
10 | 351ms | 10092kb | Time limit exceeded | 0 |
Punctaj total | 90 |