Pagini recente » Borderou de evaluare (job #397) | Borderou de evaluare (job #49052) | Borderou de evaluare (job #3031787) | Borderou de evaluare (job #49213) | Borderou de evaluare (job #2353523)
Borderou de evaluare (job #2353523)
Raport evaluator
Compilare:
main.cpp: In function 'int calc(int, int, int)':
main.cpp:10:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if (f[j])
^
main.cpp:16:16: warning: no return statement in function returning non-void [-Wreturn-type]
k=k-fact[n-i];}}
^
main.cpp: In function 'int main()':
main.cpp:43:4: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if (f[j])
^
main.cpp:18:32: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("inrudit.in","r",stdin);
^
main.cpp:19:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("inrudit.out","w",stdout);
^
main.cpp:21:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&k);
^
main.cpp:22:26: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(ch+1,1000003,stdin);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | OK | 5 |
2 | 2ms | 131kb | Incorect | 0 |
3 | 2ms | 131kb | Incorect | 0 |
4 | 2ms | 131kb | OK | 5 |
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 | 10 |