Borderou de evaluare (job #1308086)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:54:84: warning: format ‘%c’ expects argument of type ‘char*’, but argument 2 has type ‘short int*’ [-Wformat=]
for (int i = 1;i <= n;++i) for (int j = 1,p=0;j <= m;++j) scanf("%c\n",&s[i][j]),s[i][j]-='0',p+=s[i][j],v[i][j]=v[i-1][j]+p;
^
user.cpp:51:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ternar.in","r",stdin);
^
user.cpp:52:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d\n",&n,&m);
^
user.cpp:54:129: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (int i = 1;i <= n;++i) for (int j = 1,p=0;j <= m;++j) scanf("%c\n",&s[i][j]),s[i][j]-='0',p+=s[i][j],v[i][j]=v[i-1][j]+p;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 836kb | Incorect | 0 | 0 |
2 | 0ms | 896kb | Incorect | 0 |
3 | 0ms | 972kb | Incorect | 0 |
4 | 0ms | 1132kb | Incorect | 0 |
5 | 0ms | 1552kb | Incorect | 0 |
6 | 16ms | 3192kb | Incorect | 0 |
7 | 52ms | 6904kb | Incorect | 0 |
8 | 80ms | 9616kb | Incorect | 0 |
9 | 192ms | 12660kb | Incorect | 0 |
10 | Depăşit | 17624kb | Time limit exceeded. | 0 |
Punctaj total | 0 |