Borderou de evaluare (job #1481265)
Utilizator | Data | 4 septembrie 2015 08:11:55 | |
---|---|---|---|
Problema | Pali | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:6:73: error: no matching function for call to ‘_IO_FILE::_IO_FILE(char [5005], int, FILE*&)’
FILE *f=fopen("pali.in","r"),*g=fopen("pali.out","w"),fgets(s,5005,f),n=strlen(s)-1;
^
user.cpp:6:73: note: candidates are:
In file included from /usr/include/stdio.h:75:0,
from /usr/include/c++/4.8/cstdio:42,
from user.cpp:1:
/usr/include/libio.h:273:8: note: _IO_FILE::_IO_FILE()
struct _IO_FILE {
^
/usr/include/libio.h:273:8: note: candidate expects 0 arguments, 3 provided
/usr/include/libio.h:273:8: note: constexpr _IO_FILE::_IO_FILE(const _IO_FILE&)
/usr/include/libio.h:273:8: note: candidate expects 1 argument, 3 provided
/usr/include/libio.h:273:8: note: constexpr _IO_FILE::_IO_FILE(_IO_FILE&&)
/usr/include/libio.h:273:8: note: candidate expects 1 argument, 3 provided
user.cpp:6:86: error: conversion from ‘size_t {aka unsigned int}’ to non-scalar type ‘FILE {aka _IO_FILE}’ requested
FILE *f=fopen("pali.in","r"),*g=fopen("pali.out","w"),fgets(s,5005,f),n=strlen(s)-1;
^
user.cpp:7:14: error: no match for ‘operator<’ (operand types are ‘int’ and ‘FILE {aka _IO_FILE}’)
for(i=0;i<n;i++) {
^
user.cpp:15:23: error: no match for ‘operator-’ (operand types are ‘FILE {aka _IO_FILE}’ and ‘int’)
fprintf(g,"%d",p[n-1]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !