Pagini recente » Borderou de evaluare (job #1709035) | Borderou de evaluare (job #2509580) | Borderou de evaluare (job #1324502) | Borderou de evaluare (job #2506885) | Borderou de evaluare (job #1353614)
Borderou de evaluare (job #1353614)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:23:6: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if (sqrt(n + 1) != int(sqrt(n + 1)))
^
user.cpp:32:20: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("%ld\n", s);
^
user.cpp:8:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("perechi3.in", "r", stdin);
^
user.cpp:9:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("perechi3.out", "w", stdout);
^
user.cpp:10:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &T);
^
user.cpp:12:18: 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 | 204ms | 288kb | Incorect | 0 |
Punctaj total | 0 |