fork download
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int i,j,n=0;
  5.  
  6. int t1,t2,t3,a1,a2,a3,ttot,atot;
  7.  
  8.  
  9. while((scanf("%d %d %d %d %d %d",&t1,&t2,&t3,&a1,&a2,&a3))!= EOF){
  10.  
  11. ttot = atot = 0;
  12. if((t1 !=0) ) {
  13.  
  14. ttot = ttot + t1;
  15. atot = atot + a1;
  16. while(a1 > 1) {
  17. ttot = ttot + 1200;
  18. a1 --;
  19. }
  20. }
  21. if((t2 !=0) ) {
  22. ttot = ttot + t2;
  23. atot = atot + a2;
  24. while(a2 > 1) {
  25. ttot = ttot + 1200;
  26. a2 --;
  27. }
  28. }
  29. if((t3 !=0) ) {
  30. ttot = ttot + t3;
  31. atot = atot + a3;
  32. while(a3 > 1) {
  33. ttot = ttot + 1200;
  34. a3 --;
  35. }
  36. }
  37. }
  38.  
  39. printf("team %d: %d, %d\n",i+1,atot,ttot);
  40. }
  41.  
  42. system("pause");
  43. return 0;
  44. }
  45.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:4: warning: unused variable ‘n’
prog.c:4: warning: unused variable ‘j’
prog.c: At top level:
prog.c:42: error: expected declaration specifiers or ‘...’ before string constant
prog.c:42: warning: data definition has no type or storage class
prog.c:42: warning: type defaults to ‘int’ in declaration of ‘system’
prog.c:43: error: expected identifier or ‘(’ before ‘return’
prog.c:44: error: expected identifier or ‘(’ before ‘}’ token
stdout
Standard output is empty