Pagini recente » Borderou de evaluare (job #1977046) | Borderou de evaluare (job #2501637) | Borderou de evaluare (job #2955476) | Borderou de evaluare (job #2565499) | Borderou de evaluare (job #2387928)
Borderou de evaluare (job #2387928)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:2:92: warning: statement has no effect [-Wunused-value]
std::ifstream i("tg.in");std::ofstream t("tg.out");bool s[4000009];int main(){int n,j,i=1;i>>n;int a=0;for(;i<=n;++i)if(!s[i])for(j=1;j*j*i<=n;++j)s[j*j*i]=1,a+=j-1;t<<a;}
~^~~
main.cpp:2:110: warning: 'n' is used uninitialized in this function [-Wuninitialized]
std::ifstream i("tg.in");std::ofstream t("tg.out");bool s[4000009];int main(){int n,j,i=1;i>>n;int a=0;for(;i<=n;++i)if(!s[i])for(j=1;j*j*i<=n;++j)s[j*j*i]=1,a+=j-1;t<<a;}
~^~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | Incorect | 0 |
2 | 2ms | 131kb | Incorect | 0 |
3 | 2ms | 131kb | Incorect | 0 |
4 | 2ms | 131kb | Incorect | 0 |
5 | 2ms | 131kb | Incorect | 0 |
6 | 2ms | 131kb | Incorect | 0 |
7 | 2ms | 131kb | Incorect | 0 |
8 | 2ms | 131kb | Incorect | 0 |
9 | 2ms | 131kb | Incorect | 0 |
10 | 2ms | 131kb | Incorect | 0 |
11 | 2ms | 131kb | Incorect | 0 |
12 | 2ms | 131kb | Incorect | 0 |
13 | 2ms | 131kb | Incorect | 0 |
14 | 2ms | 131kb | Incorect | 0 |
15 | 2ms | 131kb | Incorect | 0 |
16 | 2ms | 131kb | Incorect | 0 |
17 | 2ms | 131kb | Incorect | 0 |
18 | 2ms | 131kb | Incorect | 0 |
19 | 2ms | 131kb | Incorect | 0 |
20 | 2ms | 131kb | Incorect | 0 |
Punctaj total | 0 |