Borderou de evaluare (job #1156933)
Utilizator | Data | 28 martie 2014 09:43:30 | |
---|---|---|---|
Problema | Matrice | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:1: error: ‘suing’ does not name a type
suing namespace std;
^
user.cpp:7:41: error: ‘int y1 [40000]’ redeclared as different kind of symbol
int x[40000],y[40000],x1[40000],y1[40000];
^
In file included from /usr/include/features.h:346:0,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/os_defines.h:39,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/c++config.h:420,
from /usr/local/include/c++/4.8.0/cstdlib:41,
from user.cpp:1:
/usr/include/bits/mathcalls.h:242:1: error: previous declaration of ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:14:29: warning: too many arguments for format [-Wformat-extra-args]
fscanf(f,"%d%d",&n,&m,&a);
^
user.cpp:18:14: warning: statement has no effect [-Wunused-value]
x1[i]+x1[i-1];
^
user.cpp:23:13: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y1[i]+y1[i-1];
^
user.cpp:23:21: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y1[i]+y1[i-1];
^
user.cpp:23:21: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:23:21: error: invalid operands of types ‘double(double)throw ()’ and ‘double(double)throw ()’ to binary ‘operator+’
user.cpp:34:30: error: expected primary-expression before ‘)’ token
for(k1=1;k1<=)
^
user.cpp:34:30: error: expected ‘;’ before ‘)’ token
user.cpp:35:13: error: expected primary-expression before ‘}’ token
}
^
user.cpp:35:13: error: expected ‘;’ before ‘}’ token
user.cpp:11:17: warning: unused variable ‘ok’ [-Wunused-variable]
int n,m,i,j,ok,nr,sum,a;
^
user.cpp:11:23: warning: unused variable ‘sum’ [-Wunused-variable]
int n,m,i,j,ok,nr,sum,a;
^
user.cpp:13:11: warning: unused variable ‘g’ [-Wunused-variable]
FILE *g=fopen("matrice.out","w");
^
user.cpp:26:12: warning: unused variable ‘k2’ [-Wunused-variable]
int k1,k2,p,l,op;
^
user.cpp:26:15: warning: unused variable ‘p’ [-Wunused-variable]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !