Borderou de evaluare (job #1975007)
Utilizator | Data | 29 aprilie 2017 17:57:09 | |
---|---|---|---|
Problema | Origami2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:12:18: error: size of array ‘a’ is too large
char a[maxN][maxN];
^
user.cpp: In function ‘int main()’:
user.cpp:114:9: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(a[i] + 1);
^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:46,
from user.cpp:1:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
user.cpp:114:14: error: ‘a’ was not declared in this scope
gets(a[i] + 1);
^
user.cpp:130:33: error: ‘a’ was not declared in this scope
cod1 = (cod1 * 26 + a[j][i] - 'a') % mod1;
^
user.cpp:111:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n", &n, &m);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !