Job 12316

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.0617s
2Wrong answer0.0689s
3Wrong answer0.0591s
4Wrong answer0.0591s
5Wrong answer0.0970s
6Wrong answer0.0645s
7Wrong answer0.0562s
8Wrong answer0.0587s
9Wrong answer0.0592s
10Wrong answer0.0560s
11Wrong answer0.0665s
12Wrong answer0.0622s
13Wrong answer0.0576s
14Wrong answer0.0579s
15Wrong answer0.0585s
16Wrong answer0.0566s
17Wrong answer0.0582s
18Wrong answer0.0590s
19Wrong answer0.0627s
20Wrong answer0.0651s
Questions?

Sponsors Gold