Borderou de evaluare (job #692356)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | 2i3j5k (clasele 9-10) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 2 feb. 2023 19:21:19 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:74: warning: "MAXN" redefined
74 | #define MAXN 20
|
main.cpp:3: note: this is the location of the previous definition
3 | #define MAXN 18
|
main.cpp:50:5: error: redefinition of 'int main()'
50 | int main() {
| ^~~~
main.cpp:22:5: note: 'int main()' previously defined here
22 | int main() {
| ^~~~
main.cpp: In function 'int main()':
main.cpp:76:7: error: redeclaration of 'FILE* fin'
76 | FILE *fin, *fout;
| ^~~
main.cpp:51:9: note: 'FILE* fin' previously declared here
51 | FILE *fin, *fout;
| ^~~
main.cpp:76:13: error: redeclaration of 'FILE* fout'
76 | FILE *fin, *fout;
| ^~~~
main.cpp:51:15: note: 'FILE* fout' previously declared here
51 | FILE *fin, *fout;
| ^~~~
main.cpp:81:42: error: a function-definition is not allowed here before '{' token
81 | void afiseazaDrum( int l, int c, int a ) {
| ^
main.cpp:88:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
88 | int main() {
| ^~
main.cpp:88:9: note: remove parentheses to default-initialize a variable
88 | int main() {
| ^~
| --
main.cpp:88:9: note: or replace parentheses with braces to value-initialize a variable
main.cpp:88:12: error: a function-definition is not allowed here before '{' token
88 | int main() {
| ^
main.cpp:77:7: warning: unused variable 'cub' [-Wunused-variable]
77 | short cub[MAXN+1][MAXN+1][MAXN+1];
| ^~~
main.cpp:78:6: warning: unused variable 'drum' [-Wunused-variable]
78 | char drum[MAXN+1][MAXN+1][MAXN+1];
| ^~~~
main.cpp: In function 'int main()':
main.cpp:28:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
28 | fscanf( in, "%d%lld%lld", &n, &x, &y );
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':