Pagini recente » Borderou de evaluare (job #1344784) | Borderou de evaluare (job #968731) | Borderou de evaluare (job #2148370) | Borderou de evaluare (job #369025) | Borderou de evaluare (job #1276409)
Borderou de evaluare (job #1276409)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:25:30: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘const char*’ [-Wformat=]
if (n==1) printf("%d","1");
^
user.cpp:26:35: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘const char*’ [-Wformat=]
else if (n==2) printf("%d","1");
^
user.cpp:19:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("nunta.in", "r", stdin);
^
user.cpp:20:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("nunta.out", "w", stdout);
^
user.cpp:21:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 244kb | Incorect | 0 |
2 | 0ms | 248kb | OK | 10 |
3 | 0ms | 240kb | OK | 10 |
4 | 0ms | 240kb | OK | 10 |
5 | 0ms | 244kb | OK | 10 |
6 | 0ms | 244kb | OK | 10 |
7 | 0ms | 248kb | OK | 10 |
8 | 0ms | 248kb | OK | 10 |
9 | 0ms | 244kb | OK | 10 |
10 | 0ms | 248kb | OK | 10 |
Punctaj total | 90 |