Pagini recente » Borderou de evaluare (job #1317144) | Cod sursa (job #930802) | Borderou de evaluare (job #1820713) | Borderou de evaluare (job #1827565) | Borderou de evaluare (job #1814188)
Borderou de evaluare (job #1814188)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:15:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long unsigned int*’ [-Wformat=]
scanf("%d%d",&q,&n);
^
user.cpp:15:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long unsigned int*’ [-Wformat=]
user.cpp:16:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=1;i<=n;i++) {
^
user.cpp:18:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long unsigned int*’ [-Wformat=]
scanf("%d",&v[i][j]);}}
^
user.cpp:21:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=1;i<=n;i++) {
^
user.cpp:28:24: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long unsigned int’ [-Wformat=]
printf("%d",poz);
^
user.cpp:37:15: warning: statement has no effect [-Wunused-value]
ok==false;
^
user.cpp: In function ‘void Simulare()’:
user.cpp:59:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=1;i<=n && ok==true;i++) {
^
user.cpp:69:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=1;i<=n;i++)
^
user.cpp: In function ‘int main()’:
user.cpp:13:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("pic.in","r",stdin);
^
user.cpp:14:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("pic.out","w",stdout);
^
user.cpp:15:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&q,&n);
^
user.cpp:18:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&v[i][j]);}}
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 292kb | OK | 5 |
| 2 | 0ms | 284kb | OK | 5 |
| 3 | 0ms | 300kb | OK | 5 |
| 4 | 0ms | 312kb | OK | 5 |
| 5 | 0ms | 312kb | OK | 5 |
| 6 | 0ms | 284kb | OK | 5 |
| 7 | 0ms | 312kb | OK | 5 |
| 8 | 0ms | 316kb | OK | 5 |
| 9 | 0ms | 304kb | OK | 5 |
| 10 | 0ms | 316kb | OK | 5 |
| 11 | 0ms | 400kb | OK | 5 |
| 12 | 0ms | 396kb | OK | 5 |
| 13 | 0ms | 364kb | OK | 5 |
| 14 | 0ms | 356kb | OK | 5 |
| 15 | 0ms | 352kb | OK | 5 |
| 16 | 0ms | 336kb | OK | 5 |
| 17 | 0ms | 328kb | OK | 5 |
| 18 | 0ms | 372kb | OK | 5 |
| 19 | 0ms | 392kb | OK | 5 |
| 20 | 0ms | 400kb | OK | 5 |
| Punctaj total | 100 |