Pagini recente » Borderou de evaluare (job #173691) | Borderou de evaluare (job #2192510) | Cod sursa (job #2201807) | Borderou de evaluare (job #2913721) | Borderou de evaluare (job #1627823)
Borderou de evaluare (job #1627823)
Raport evaluator
Compilare:
user.cpp: In function ‘void inversBig(int)’:
user.cpp:40:43: warning: operation on ‘b[j]’ may be undefined [-Wsequence-point]
b[i] = b[i] + b[j] - (b[j] = b[i]);
^
user.cpp: In function ‘void inversSmall(int)’:
user.cpp:125:43: warning: operation on ‘b[j]’ may be undefined [-Wsequence-point]
b[i] = b[i] + b[j] - (b[j] = b[i]);
^
user.cpp: In function ‘int main()’:
user.cpp:181:18: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[5005]’ [-Wformat=]
scanf("%s",&a);
^
user.cpp:182:18: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[5005]’ [-Wformat=]
scanf("%s",&b);
^
user.cpp:179:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("vecini2.in","r",stdin);
^
user.cpp:180:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:181:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",&a);
^
user.cpp:182:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",&b);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 428kb | OK | 10 |
| 2 | 0ms | 424kb | OK | 10 |
| 3 | 0ms | 432kb | OK | 10 |
| 4 | 0ms | 408kb | OK | 10 |
| 5 | 0ms | 416kb | OK | 10 |
| 6 | 0ms | 420kb | OK | 10 |
| 7 | 0ms | 416kb | OK | 10 |
| 8 | 0ms | 412kb | OK | 10 |
| 9 | 0ms | 420kb | OK | 10 |
| 10 | 0ms | 416kb | OK | 10 |
| Punctaj total | 100 |