Borderou de evaluare (job #3237720)

Utilizator popescu_georgePopescu George popescu_george Data 12 iulie 2024 11:27:44
Problema Reactivi Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:8:50: error: no match for 'operator>' (operand types are 'int' and 'FILE') 8 | if(fscanf(f,"%d%d",&x,&y),x+=101,y+=101,x>f[y]) | ~^~~~~ | | | | int FILE main.cpp:9:18: error: no match for 'operator=' (operand types are 'FILE' and 'int') 9 | f[y]=x; | ^ In file included from /usr/include/stdio.h:43, from /usr/include/c++/12.2.1/cstdio:42, 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 'int' 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 'int' to '_IO_FILE&&' main.cpp:11:16: error: no match for 'operator>' (operand types are 'FILE' and 'int') 11 | if(f[i]>m) | ~~~~^~ | | | | | int | FILE Non zero exit status: 1

Ceva nu functioneaza?