Pagini recente » Borderou de evaluare (job #937656) | Borderou de evaluare (job #187142) | Borderou de evaluare (job #304169) | Borderou de evaluare (job #654732) | Borderou de evaluare (job #1427067)
Borderou de evaluare (job #1427067)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:54:31: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
scanf("%d %ld", &n, &k);
^
user.cpp:45:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("semipal.in", "r", stdin);
^
user.cpp:46:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("semipal.out", "w", stdout);
^
user.cpp:52:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for(scanf("%d", &t); t; --t)
^
user.cpp:54:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %ld", &n, &k);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 240kb | Incorect | 0 |
Punctaj total | 0 |