Job 12315

Owner
vancea catalin
Problem
Pharm
Source
2.75KB
Result
0 points

Compiler output

prog.cpp: In function 'void citire()':
prog.cpp:14:36: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
     for(int i=1;i<=n;i++) fin>>s[i]+1;
                                    ^
prog.cpp: In function 'int main()':
prog.cpp:54:9: warning: unused variable 'a' [-Wunused-variable]
     int a,i,j,ind=1,maxim1=-99999,maxim2=-99999,xi,xj,k,r;
         ^
prog.cpp:54:57: warning: unused variable 'r' [-Wunused-variable]
     int a,i,j,ind=1,maxim1=-99999,maxim2=-99999,xi,xj,k,r;
                                                         ^
prog.cpp:102:24: warning: 'xj' may be used uninitialized in this function [-Wmaybe-uninitialized]
         fout<<xi<<" "<<xj<<"\n"<<color<<"\n";
                        ^
prog.cpp:102:15: warning: 'xi' may be used uninitialized in this function [-Wmaybe-uninitialized]
         fout<<xi<<" "<<xj<<"\n"<<color<<"\n";
               ^

Results

Test numberResultTime
1Wrong answer0.1870s
2Wrong answer0.1201s
3Wrong answer0.1236s
4Wrong answer0.1313s
5Wrong answer0.0941s
6Wrong answer0.1034s
7Wrong answer0.1183s
8Wrong answer0.1634s
9Wrong answer0.0947s
10Wrong answer0.0964s
11Wrong answer0.0666s
12Wrong answer0.1041s
13Wrong answer0.1475s
14Wrong answer0.0950s
15Wrong answer0.0998s
16Wrong answer0.0714s
17Wrong answer0.1077s
18Wrong answer0.1039s
19Wrong answer0.1206s
20Wrong answer0.1132s
Questions?

Sponsors Gold