Pagini recente » Borderou de evaluare (job #2335911) | Borderou de evaluare (job #2745181) | Borderou de evaluare (job #1488822) | Borderou de evaluare (job #1869308) | Borderou de evaluare (job #1818157)
Borderou de evaluare (job #1818157)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:20:24: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long unsigned int’ [-Wformat=]
printf("%d\n",s);
^
user.cpp:24:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=1; i<=n; i++)
^
user.cpp:27:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=i+1;j<=n;j++)
^
user.cpp:29:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(i==n) sum=1;
^
user.cpp:32:22: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long unsigned int’ [-Wformat=]
printf("%d\n",ans);
^
user.cpp:9:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cifre5.in","r",stdin);
^
user.cpp:10:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cifre5.out","w",stdout);
^
user.cpp:13:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&p);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 264kb | OK | 4 |
2 | 0ms | 268kb | OK | 4 |
3 | 0ms | 264kb | OK | 4 |
4 | 0ms | 264kb | Incorect | 0 |
5 | 0ms | 264kb | OK | 4 |
6 | 0ms | 260kb | Incorect | 0 |
7 | 0ms | 260kb | OK | 4 |
8 | 0ms | 268kb | Incorect | 0 |
9 | 0ms | 260kb | Incorect | 0 |
10 | 0ms | 268kb | Incorect | 0 |
11 | 0ms | 264kb | Incorect | 0 |
12 | 0ms | 260kb | Incorect | 0 |
13 | 0ms | 260kb | Incorect | 0 |
14 | 0ms | 264kb | Incorect | 0 |
15 | 0ms | 264kb | Incorect | 0 |
16 | 0ms | 268kb | Incorect | 0 |
17 | 0ms | 268kb | Incorect | 0 |
18 | 0ms | 260kb | Incorect | 0 |
19 | 0ms | 260kb | Incorect | 0 |
20 | 0ms | 268kb | Incorect | 0 |
21 | 0ms | 264kb | Incorect | 0 |
22 | 0ms | 264kb | Incorect | 0 |
23 | 0ms | 264kb | OK | 4 |
24 | 0ms | 264kb | Incorect | 0 |
25 | 0ms | 268kb | Incorect | 0 |
Punctaj total | 24 |