Pagini recente » Cod sursa (job #2985293) | Borderou de evaluare (job #2319139) | Borderou de evaluare (job #121555) | Borderou de evaluare (job #1534505) | Borderou de evaluare (job #1457152)
Borderou de evaluare (job #1457152)
Raport evaluator
Compilare:
user.cpp: In function ‘void suma(long long unsigned int)’:
user.cpp:27:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=1;i<=a[0]+15;i++)
^
user.cpp:39:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=1;i<=a[0]+15;i++)
^
user.cpp:58:29: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long unsigned int’ [-Wformat=]
printf("%d",a[i]);
^
user.cpp: In function ‘int main()’:
user.cpp:68:23: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=]
scanf("%ld",&n);
^
user.cpp:63:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("quadratum.in","r",stdin);
^
user.cpp:64:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("quadratum.out","w",stdout);
^
user.cpp:65:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&t);
^
user.cpp:68:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld",&n);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 268kb | OK | 100 |
Punctaj total | 100 |