Borderou de evaluare (job #682091)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Puncte1 (baraj gimnaziu) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 15 dec. 2022 15:13:20 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:10:34: error: no match for 'operator=' (operand types are 'FILE' and 'FILE*')
10 | fin = fopen( "puncte1.in", "r" );
| ^
In file included from /usr/include/stdio.h:43,
from main.cpp:1:
/usr/include/bits/types/struct_FILE.h:49:8: note: candidate: 'constexpr _IO_FILE& _IO_FILE::operator=(const _IO_FILE&)'
49 | struct _IO_FILE
| ^~~~~~~~
/usr/include/bits/types/struct_FILE.h:49:8: note: no known conversion for argument 1 from 'FILE*' to 'const _IO_FILE&'
/usr/include/bits/types/struct_FILE.h:49:8: note: candidate: 'constexpr _IO_FILE& _IO_FILE::operator=(_IO_FILE&&)'
/usr/include/bits/types/struct_FILE.h:49:8: note: no known conversion for argument 1 from 'FILE*' to '_IO_FILE&&'
main.cpp:11:11: error: cannot convert 'FILE' to 'FILE*'
11 | fscanf( fin, "%d%d", &n, &k );
| ^~~
| |
| FILE
In file included from main.cpp:1:
/usr/include/stdio.h:415:37: note: initializing argument 1 of 'int fscanf(FILE*, const char*, ...)'
415 | extern int fscanf (FILE *__restrict __stream,
| ~~~~~~~~~~~~~~~~~^~~~~~~~
main.cpp:13:13: error: cannot convert 'FILE' to 'FILE*'
13 | fscanf( fin, "%d%d", &x1, &y1 );
| ^~~
| |
| FILE
In file included from main.cpp:1:
/usr/include/stdio.h:415:37: note: initializing argument 1 of 'int fscanf(FILE*, const char*, ...)'
415 | extern int fscanf (FILE *__restrict __stream,
| ~~~~~~~~~~~~~~~~~^~~~~~~~
main.cpp:20:11: error: cannot convert 'FILE' to 'FILE*'
20 | fclose( fin );
| ^~~
| |
| FILE
In file included from main.cpp:1:
/usr/include/stdio.h:178:26: note: initializing argument 1 of 'int fclose(FILE*)'
178 | extern int fclose (FILE *__stream);
| ~~~~~~^~~~~~~~
main.cpp:40:36: error: no match for 'operator=' (operand types are 'FILE' and 'FILE*')
40 | fout = fopen( "puncte1.out", "w" );
| ^
In file included from /usr/include/stdio.h:43,
from main.cpp:1:
/usr/include/bits/types/struct_FILE.h:49:8: note: candidate: 'constexpr _IO_FILE& _IO_FILE::operator=(const _IO_FILE&)'
49 | struct _IO_FILE
| ^~~~~~~~
/usr/include/bits/types/struct_FILE.h:49:8: note: no known conversion for argument 1 from 'FILE*' to 'const _IO_FILE&'
/usr/include/bits/types/struct_FILE.h:49:8: note: candidate: 'constexpr _IO_FILE& _IO_FILE::operator=(_IO_FILE&&)'
/usr/include/bits/types/struct_FILE.h:49:8: note: no known conversion for argument 1 from 'FILE*' to '_IO_FILE&&'